Package org.iplass.mtp.webapi.definition
Enum Class RequestType
- All Implemented Interfaces:
Serializable
,Comparable<RequestType>
,Constable
WebApiリクエストの受け入れ可能な形式を表す定義です。
WebApiを呼び出す際の、HTTPリクエストヘッダーのContent-Typeヘッダーに対応します。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionフォーム形式でのリクエストを表します。 リクエストのパラメータは通常のHTTPパラメータで受け渡されます。 WebApiリクエスト時のContent-Typeに"application/x-www-form-urlencoded","multipart/form-data"が指定された場合、 また、GET/DELETE時にContent-Type未指定の場合、リクエストはこの形式とみなされて処理されます。JSON形式でのリクエストを表します。 リクエストのパラメータはJSON形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/json"が指定された場合リクエストはこの形式とみなされて処理されます。上記以外のリクエストを表します。 リクエストのパラメータは InputStream 形式で受け渡されます。XML形式でのリクエストを表します。 リクエストのパラメータはXML形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/xml"が指定された場合リクエストはこの形式とみなされて処理されます。 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestType
Returns the enum constant of this class with the specified name.static RequestType[]
values()
Returns an array containing the constants of this enum class, 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"が指定された場合リクエストはこの形式とみなされて処理されます。 -
REST_OTHERS
上記以外のリクエストを表します。 リクエストのパラメータは InputStream 形式で受け渡されます。
-
-
Field Details
-
ACCEPT_ALL
全てのリクエスト形式
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-