Enum HttpApiConfig.PostLocation

java.lang.Object
java.lang.Enum<HttpApiConfig.PostLocation>
org.apache.drill.exec.store.http.HttpApiConfig.PostLocation
All Implemented Interfaces:
Serializable, Comparable<HttpApiConfig.PostLocation>
Enclosing class:
HttpApiConfig

public static enum HttpApiConfig.PostLocation extends Enum<HttpApiConfig.PostLocation>
Config variable to determine how POST variables are sent to the downstream API
  • Enum Constant Details

    • QUERY_STRING

      public static final HttpApiConfig.PostLocation QUERY_STRING
      Parameters from the query other than static parameters are pushed to the query string, as in a GET request
    • POST_BODY

      public static final HttpApiConfig.PostLocation POST_BODY
      All POST parameters, both static and from the query, are pushed to the POST body as key/value pairs
    • JSON_BODY

      public static final HttpApiConfig.PostLocation JSON_BODY
      All POST parameters, both static and from the query, are pushed to the POST body as a JSON object.
    • XML_BODY

      public static final HttpApiConfig.PostLocation XML_BODY
      All POST parameters, both static and from the query, are pushed to the POST body as an XML request.
  • Method Details

    • values

      public static HttpApiConfig.PostLocation[] 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

      public static HttpApiConfig.PostLocation valueOf(String name)
      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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null