Package org.apache.drill.exec.store.http
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
Config variable to determine how POST variables are sent to the downstream API
-
Enum Constant Summary
Enum ConstantDescriptionAll POST parameters, both static and from the query, are pushed to the POST body as a JSON object.All POST parameters, both static and from the query, are pushed to the POST body as key/value pairsParameters from the query other than static parameters are pushed to the query string, as in a GET requestAll POST parameters, both static and from the query, are pushed to the POST body as an XML request. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpApiConfig.PostLocation
Returns the enum constant of this type with the specified name.static HttpApiConfig.PostLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUERY_STRING
Parameters from the query other than static parameters are pushed to the query string, as in a GET request -
POST_BODY
All POST parameters, both static and from the query, are pushed to the POST body as key/value pairs -
JSON_BODY
All POST parameters, both static and from the query, are pushed to the POST body as a JSON object. -
XML_BODY
All POST parameters, both static and from the query, are pushed to the POST body as an XML request.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-