Package org.iplass.mtp.webapi.definition
Enum RequestType
java.lang.Object
java.lang.Enum<RequestType>
org.iplass.mtp.webapi.definition.RequestType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RequestType>,java.lang.constant.Constable
public enum RequestType extends java.lang.Enum<RequestType>
WebApiリクエストの受け入れ可能な形式を表す定義です。
WebApiを呼び出す際の、HTTPリクエストヘッダーのContent-Typeヘッダーに対応します。
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description REST_FORMフォーム形式でのリクエストを表します。 リクエストのパラメータは通常のHTTPパラメータで受け渡されます。 WebApiリクエスト時のContent-Typeに"application/x-www-form-urlencoded","multipart/form-data"が指定された場合、 また、GET/DELETE時にContent-Type未指定の場合、リクエストはこの形式とみなされて処理されます。REST_JSONJSON形式でのリクエストを表します。 リクエストのパラメータはJSON形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/json"が指定された場合リクエストはこの形式とみなされて処理されます。REST_XMLXML形式でのリクエストを表します。 リクエストのパラメータはXML形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/xml"が指定された場合リクエストはこの形式とみなされて処理されます。 -
Field Summary
Fields Modifier and Type Field Description static RequestType[]ACCEPT_ALL -
Method Summary
Modifier and Type Method Description static RequestTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RequestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REST_FORM
フォーム形式でのリクエストを表します。 リクエストのパラメータは通常のHTTPパラメータで受け渡されます。 WebApiリクエスト時のContent-Typeに"application/x-www-form-urlencoded","multipart/form-data"が指定された場合、 また、GET/DELETE時にContent-Type未指定の場合、リクエストはこの形式とみなされて処理されます。 -
REST_JSON
JSON形式でのリクエストを表します。 リクエストのパラメータはJSON形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/json"が指定された場合リクエストはこの形式とみなされて処理されます。 -
REST_XML
XML形式でのリクエストを表します。 リクエストのパラメータはXML形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/xml"が指定された場合リクエストはこの形式とみなされて処理されます。
-
-
Field Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-