Package com.veeva.vault.vapil.connector
Enum Class HttpRequestConnector.ResponseOption
java.lang.Object
java.lang.Enum<HttpRequestConnector.ResponseOption>
com.veeva.vault.vapil.connector.HttpRequestConnector.ResponseOption
- All Implemented Interfaces:
Serializable
,Comparable<HttpRequestConnector.ResponseOption>
,Constable
- Enclosing class:
- HttpRequestConnector
public static enum HttpRequestConnector.ResponseOption
extends Enum<HttpRequestConnector.ResponseOption>
Options for processing the HTTP response
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReceive the response as a byte[]Handle response as a string, such as a JSON response or small text fileWrite response to a file -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HttpRequestConnector.ResponseOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
Handle response as a string, such as a JSON response or small text file -
TO_FILE
Write response to a file -
BYTE_ARRAY
Receive the response as a byte[]
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-