public enum HttpRequestContentType extends Enum<HttpRequestContentType>
HttpRequest
, which can be set using
HttpRequest.setContentType(com.veeva.vault.sdk.api.http.HttpRequestContentType)
.Enum Constant and Description |
---|
APPLICATION_FORM
Form content type (application/x-www-form-urlencoded).
|
APPLICATION_JSON
JSON content type (application/json).
|
APPLICATION_XML
Application XML content type (application/xml).
|
TEXT_CSV
CSV content type (text/csv).
|
TEXT_HTML
HTML content type (text/html).
|
TEXT_PLAIN
Plain text content type (text/plain).
|
TEXT_XML
Text XML content type (text/xml).
|
Modifier and Type | Method and Description |
---|---|
static HttpRequestContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRequestContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRequestContentType TEXT_PLAIN
public static final HttpRequestContentType TEXT_CSV
public static final HttpRequestContentType TEXT_XML
public static final HttpRequestContentType TEXT_HTML
public static final HttpRequestContentType APPLICATION_XML
public static final HttpRequestContentType APPLICATION_FORM
public static final HttpRequestContentType APPLICATION_JSON
public static HttpRequestContentType[] values()
for (HttpRequestContentType c : HttpRequestContentType.values()) System.out.println(c);
public static HttpRequestContentType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © Veeva Systems 2017–2021. All rights reserved.