Class CdpRequestContext<T extends BaseResponse>

java.lang.Object
com.cloudera.cdp.client.CdpRequestContext<T>

public class CdpRequestContext<T extends BaseResponse> extends Object
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 Details

    • CdpRequestContext

      public CdpRequestContext(javax.ws.rs.client.Client client, String serviceName, String operationName, javax.ws.rs.core.GenericType<T> responseType)
    • 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

      public String getServiceName()
    • getOperationName

      public String getOperationName()
    • getResponseType

      public javax.ws.rs.core.GenericType<T> getResponseType()
    • getClientApplicationName

      @Nullable public String getClientApplicationName()
    • setClientApplicationName

      public void setClientApplicationName(@Nullable String clientApplicationName)
    • getRetryHandler

      public RetryHandler getRetryHandler()
    • setRetryHandler

      public void setRetryHandler(RetryHandler retryHandler)
    • getCredentials

      public CdpCredentials getCredentials()
    • setCredentials

      public void setCredentials(CdpCredentials credentials)
    • getRequestContentType

      public String getRequestContentType()
    • setRequestContentType

      public void setRequestContentType(String requestContentType)
    • getResponseContentType

      public String getResponseContentType()
    • setResponseContentType

      public void setResponseContentType(String responseContentType)
    • getEndpoint

      public String getEndpoint()
    • setEndpoint

      public void setEndpoint(String endpoint)
    • getMethod

      public String getMethod()
    • setMethod

      public void setMethod(String method)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getQueries

      public final List<Pair> getQueries()
    • setQueries

      public void setQueries(List<Pair> queries)
    • getHeaders

      public final Map<String,String> getHeaders()
    • setHeaders

      public void setHeaders(Map<String,String> headers)
    • getBody

      @Nullable public Object getBody()
    • setBody

      public void setBody(@Nullable Object body)
    • getRawResponse

      @Nullable public javax.ws.rs.core.Response getRawResponse()
    • setRawResponse

      public void setRawResponse(@Nullable javax.ws.rs.core.Response rawResponse)
    • getResponse

      @Nullable public T getResponse()
    • setResponse

      public void setResponse(@Nullable T response)
    • getProperties

      public final Map<String,Object> getProperties()
    • getRequestUrl

      public URI getRequestUrl()