Enum Class RequestType

java.lang.Object
java.lang.Enum<RequestType>
org.iplass.mtp.webapi.definition.RequestType
All Implemented Interfaces:
Serializable, Comparable<RequestType>, Constable

public enum RequestType extends Enum<RequestType>
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 Constants
    Enum Constant
    Description
    フォーム形式でのリクエストを表します。 リクエストのパラメータは通常の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
    Modifier and Type
    Field
    Description
    static RequestType[]
    全てのリクエスト形式
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static RequestType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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"が指定された場合リクエストはこの形式とみなされて処理されます。
    • REST_OTHERS

      public static final RequestType REST_OTHERS
      上記以外のリクエストを表します。 リクエストのパラメータは InputStream 形式で受け渡されます。
  • Field Details

    • ACCEPT_ALL

      public static RequestType[] ACCEPT_ALL
      全てのリクエスト形式
  • Method Details

    • values

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

      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.)
      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 name
      NullPointerException - if the argument is null