Uses of Interface
com.veeva.vault.sdk.api.http.HttpRequest
Packages that use HttpRequest
Package
Description
This package provides interfaces to make HTTP callouts (to Vault or to an external service).
-
Uses of HttpRequest in com.veeva.vault.sdk.api.http
Methods in com.veeva.vault.sdk.api.http that return HttpRequestModifier and TypeMethodDescriptionHttpRequest.appendPath
(String path) Appends the given path to the base URL.HttpService.newHttpRequest
(String connectionName) Create a new HTTP request corresponding to the givenconnectionName
(local, Vault to Vault, or external connection).HttpService.newLocalHttpRequest()
Deprecated.HttpService.newLocalHttpRequest
(RequestContextUserType requestContextUserType) Create a new HTTP request to represent a connection to the current vault as the provided user type.Specifies request body as CSV as returned byCsvData.asString()
.Specifies request body as JSON as returned byJsonArray.asString()
.HttpRequest.setBody
(JsonObject body) Specifies request body as JSON as returned byJsonObject.asString()
.Specifies request body as a string.<U extends UserDefinedModel>
HttpRequestHttpRequest.setBody
(Collection<U> body) Specifies request body as the serialized form of the providedUserDefinedModel
s.<U extends UserDefinedModel>
HttpRequestHttpRequest.setBody
(U body) Specifies request body as the serialized form of the providedUserDefinedModel
.HttpRequest.setBodyParam
(String name, String value) Specifies a body param.HttpRequest.setContentType
(HttpRequestContentType contentType) Specifies theContent-Type
header for this HTTP request.Specifies an HTTP request header.HttpRequest.setMethod
(HttpMethod method) Specifies the HTTP method of the request.HttpRequest.setQuerystringParam
(String name, String value) Specifies a query string param.HttpRequest.setResolveTokens
(boolean resolveTokens) Specifies whether to resolve tokens used in headers, body parameters, and body.HttpRequest.setTimeout
(int timeout) Specifies the maximum time in milliseconds to wait for this HTTP request to complete execution.HttpRequest.setTokenRequest
(TokenRequest tokenRequest) Specifies the custom tokens that should be resolved in headers, body parameters, and body.Methods in com.veeva.vault.sdk.api.http with parameters of type HttpRequestModifier and TypeMethodDescriptionHttpService.send
(HttpRequest httpRequest, CsvReadParameters csvReadParameters) Creates an operation to send the specified HTTP request and convert the response body specifically toCsvData
using the given customcsvReadParameters
.<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 givenvalueType
.<U extends UserDefinedModel>
HttpOperation<U>HttpService.send
(HttpRequest httpRequest, Class<U> userDefinedModelResponseType) Creates an operation to send the specified HTTP request and convert the response body to the givenUserDefinedModel
type.
HttpService.newLocalHttpRequest(RequestContextUserType)
.