Enum Class RequestType
- すべての実装されたインタフェース:
Serializable
,Comparable<RequestType>
,Constable
WebApiリクエストの受け入れ可能な形式を表す定義です。
WebApiを呼び出す際の、HTTPリクエストヘッダーのContent-Typeヘッダーに対応します。
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
列挙型定数の概要
列挙定数 -
フィールドの概要
フィールド -
メソッドの概要
修飾子とタイプメソッド説明static 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.
-
列挙型定数の詳細
-
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"が指定された場合リクエストはこの形式とみなされて処理されます。
-
-
フィールド詳細
-
ACCEPT_ALL
-
-
メソッドの詳細
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 戻り値:
- 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.)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 引数がnullの場合
-