Package com.cloudera.cdp.client
Class CdpRequestContext<T extends BaseResponse>
java.lang.Object
com.cloudera.cdp.client.CdpRequestContext<T>
CDP client context. It has all information needed to send a CDP API request.
A context instance is not shared between requests, each request should have its own instance.
This class is for internal use only.
-
Constructor Summary
ConstructorDescriptionCdpRequestContext
(javax.ws.rs.client.Client client, String serviceName, String operationName, javax.ws.rs.core.GenericType<T> responseType) CdpRequestContext
(javax.ws.rs.client.Client client, String serviceName, String operationName, javax.ws.rs.core.GenericType<T> responseType, CdpRequestContext context) -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
javax.ws.rs.client.Client
getPath()
javax.ws.rs.core.Response
javax.ws.rs.core.GenericType
<T> void
void
setClientApplicationName
(String clientApplicationName) void
setCredentials
(CdpCredentials credentials) void
setEndpoint
(String endpoint) void
setHeaders
(Map<String, String> headers) void
void
void
setQueries
(List<Pair> queries) void
setRawResponse
(javax.ws.rs.core.Response rawResponse) void
setRequestContentType
(String requestContentType) void
setResponse
(T response) void
setResponseContentType
(String responseContentType) void
setRetryHandler
(RetryHandler retryHandler)
-
Constructor Details
-
CdpRequestContext
-
CdpRequestContext
public CdpRequestContext(javax.ws.rs.client.Client client, String serviceName, String operationName, javax.ws.rs.core.GenericType<T> responseType, CdpRequestContext context)
-
-
Method Details
-
getClient
public javax.ws.rs.client.Client getClient() -
getServiceName
-
getOperationName
-
getResponseType
-
getClientApplicationName
-
setClientApplicationName
-
getRetryHandler
-
setRetryHandler
-
getCredentials
-
setCredentials
-
getRequestContentType
-
setRequestContentType
-
getResponseContentType
-
setResponseContentType
-
getEndpoint
-
setEndpoint
-
getMethod
-
setMethod
-
getPath
-
setPath
-
getQueries
-
setQueries
-
getHeaders
-
setHeaders
-
getBody
-
setBody
-
getRawResponse
@Nullable public javax.ws.rs.core.Response getRawResponse() -
setRawResponse
public void setRawResponse(@Nullable javax.ws.rs.core.Response rawResponse) -
getResponse
-
setResponse
-
getProperties
-
getRequestUrl
-