Package | Description |
---|---|
com.veeva.vault.sdk.api.http |
This package provides interfaces to make HTTP callouts (to Vault or to an external service).
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpRequest.appendPath(String path)
Appends the given path to the base URL.
|
HttpRequest |
HttpService.newHttpRequest(String connectionName)
Create a new HTTP request corresponding to the given
connectionName (local, vault-to-vault, or external connection). |
HttpRequest |
HttpService.newLocalHttpRequest()
Create a new HTTP request to represent a connection to the current vault as the current user.
|
HttpRequest |
HttpRequest.setBody(CsvData body)
Specifies request body as CSV as returned by
CsvData.asString() . |
HttpRequest |
HttpRequest.setBody(JsonArray body)
Specifies request body as JSON as returned by
JsonArray.asString() . |
HttpRequest |
HttpRequest.setBody(JsonObject body)
Specifies request body as JSON as returned by
JsonObject.asString() . |
HttpRequest |
HttpRequest.setBody(String body)
Specifies request body as a string.
|
HttpRequest |
HttpRequest.setBodyParam(String name,
String value)
Specifies a body param.
|
HttpRequest |
HttpRequest.setHeader(String name,
String value)
Specifies an HTTP request header.
|
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
Specifies the HTTP method of the request.
|
HttpRequest |
HttpRequest.setQuerystringParam(String name,
String value)
Specifies a query string param.
|
HttpRequest |
HttpRequest.setResolveTokens(boolean resolveTokens)
Specifies whether or not to resolve tokens used in headers, body parameters, and body.
|
HttpRequest |
HttpRequest.setTimeout(int timeout)
Specifies the maximum time in milliseconds to wait for this HTTP request to complete execution.
|
Modifier and Type | Method and Description |
---|---|
HttpOperation<CsvData> |
HttpService.send(HttpRequest httpRequest,
CsvReadParameters csvReadParameters)
Creates an operation to send the specified HTTP request and convert the response body specifically
to
CsvData using the given custom csvReadParameters . |
<T> HttpOperation<T> |
HttpService.send(HttpRequest httpRequest,
HttpResponseBodyValueType<T> valueType)
Creates an operation to send the specified HTTP request and convert the response body to the given
valueType . |
Copyright © Veeva Systems 2017–2019. All rights reserved.