Enum Class RequestType

java.lang.Object
java.lang.Enum<RequestType>
org.iplass.mtp.webapi.definition.RequestType
すべての実装されたインタフェース:
Serializable, Comparable<RequestType>, Constable

public enum RequestType extends Enum<RequestType>
WebApiリクエストの受け入れ可能な形式を表す定義です。 WebApiを呼び出す際の、HTTPリクエストヘッダーのContent-Typeヘッダーに対応します。
  • 列挙型定数の詳細

    • REST_FORM

      public static final RequestType REST_FORM
      フォーム形式でのリクエストを表します。 リクエストのパラメータは通常のHTTPパラメータで受け渡されます。 WebApiリクエスト時のContent-Typeに"application/x-www-form-urlencoded","multipart/form-data"が指定された場合、 また、GET/DELETE時にContent-Type未指定の場合、リクエストはこの形式とみなされて処理されます。
    • REST_JSON

      public static final RequestType REST_JSON
      JSON形式でのリクエストを表します。 リクエストのパラメータはJSON形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/json"が指定された場合リクエストはこの形式とみなされて処理されます。
    • REST_XML

      public static final RequestType REST_XML
      XML形式でのリクエストを表します。 リクエストのパラメータはXML形式で受け渡されます。 WebApiリクエスト時のContent-Typeに"application/xml"が指定された場合リクエストはこの形式とみなされて処理されます。
  • フィールド詳細

  • メソッドの詳細

    • values

      public static RequestType[] 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

      public static RequestType valueOf(String name)
      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 name
      NullPointerException - 引数がnullの場合