Class CdpRequestContext<T extends BaseResponse>


  • 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 Detail

      • 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 Detail

      • 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)
      • setRetryHandler

        public void setRetryHandler​(RetryHandler retryHandler)
      • 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 List<Pair> getQueries()
      • setQueries

        public void setQueries​(List<Pair> queries)
      • 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)
      • getRequestUrl

        public URI getRequestUrl()