Class HttpClientContext.Delegate
- All Implemented Interfaces:
org.apache.hc.core5.http.protocol.HttpContext
- Enclosing class:
HttpClientContext
HttpContext.
To be removed in the future.- Since:
- 4.3
-
Nested Class Summary
Nested classes/interfaces inherited from class HttpClientContext
HttpClientContext.Delegate -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hc.core5.http.protocol.HttpContextFields inherited from class HttpClientContext
AUTH_CACHE, AUTH_EXCHANGE_MAP, AUTHSCHEME_REGISTRY, COOKIE_ORIGIN, COOKIE_SPEC, COOKIE_STORE, COOKIESPEC_REGISTRY, CREDS_PROVIDER, EXCHANGE_ID, HTTP_ROUTE, REDIRECT_LOCATIONS, REQUEST_CONFIG, USER_TOKENFields inherited from class org.apache.hc.core5.http.protocol.HttpCoreContext
CONNECTION_ENDPOINT, HTTP_REQUEST, HTTP_RESPONSE, SSL_SESSIONFields inherited from interface org.apache.hc.core5.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) <T> TgetAttribute(String id) <T> TgetAttribute(String id, Class<T> clazz) Represents aAuthCacheused in the context of the request execution.Map<org.apache.hc.core5.http.HttpHost, AuthExchange> Represents a map ofAuthExchanges performed in the context of the request execution.org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> Represents aAuthSchemeFactoryregistry used in the context of the request execution.Represents aCookieOriginproduced in the context of request execution.Represents aCookieSpecchosen in the context of request execution.org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> Represents aCookieSpecFactoryregistry used in the context of the request execution.Represents aCookieStoreused in the context of the request execution.Represents aCredentialsProviderregistry used in the context of the request execution.org.apache.hc.core5.http.EndpointDetailsRepresents an identifier generated for the current message exchange executed in the given context.Represents current route used to execute message exchanges.org.apache.hc.core5.http.ProtocolVersionRepresents a collection of all redirects executed in the context of request execution.org.apache.hc.core5.http.HttpRequestRepresents anusedin the context of the request execution.org.apache.hc.core5.http.HttpResponseRepresents an arbitrary user token that identifies the user in the context of the request execution.setAttribute(String id, Object obj) voidsetAuthCache(AuthCache authCache) voidsetAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> lookup) voidsetCookieOrigin(CookieOrigin cookieOrigin) voidsetCookieSpec(CookieSpec cookieSpec) voidsetCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> lookup) voidsetCookieStore(CookieStore cookieStore) voidsetCredentialsProvider(CredentialsProvider credentialsProvider) voidsetEndpointDetails(org.apache.hc.core5.http.EndpointDetails endpointDetails) voidsetExchangeId(String exchangeId) voidsetProtocolVersion(org.apache.hc.core5.http.ProtocolVersion version) voidsetRedirectLocations(RedirectLocations redirectLocations) voidsetRequest(org.apache.hc.core5.http.HttpRequest request) voidsetRequestConfig(RequestConfig requestConfig) voidsetResponse(org.apache.hc.core5.http.HttpResponse response) voidvoidsetSSLSession(SSLSession sslSession) voidsetUserToken(Object userToken) toString()Methods inherited from class HttpClientContext
adapt, cast, castOrCreate, create, getAuthExchange, getNextNonce, getRequestConfigOrDefault, getUserToken, resetAuthExchange, setAuthExchange, setNextNonce
-
Field Details
-
httpContext
private final org.apache.hc.core5.http.protocol.HttpContext httpContext
-
-
Constructor Details
-
Delegate
Delegate(org.apache.hc.core5.http.protocol.HttpContext httpContext)
-
-
Method Details
-
getAttr
-
getHttpRoute
Description copied from class:HttpClientContextRepresents current route used to execute message exchanges.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getHttpRoutein classHttpClientContext
-
setRoute
- Overrides:
setRoutein classHttpClientContext
-
getRedirectLocations
Description copied from class:HttpClientContextRepresents a collection of all redirects executed in the context of request execution.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getRedirectLocationsin classHttpClientContext
-
setRedirectLocations
- Overrides:
setRedirectLocationsin classHttpClientContext
-
getCookieStore
Description copied from class:HttpClientContextRepresents aCookieStoreused in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getCookieStorein classHttpClientContext
-
setCookieStore
- Overrides:
setCookieStorein classHttpClientContext
-
getCookieSpec
Description copied from class:HttpClientContextRepresents aCookieSpecchosen in the context of request execution.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getCookieSpecin classHttpClientContext
-
setCookieSpec
- Overrides:
setCookieSpecin classHttpClientContext
-
getCookieOrigin
Description copied from class:HttpClientContextRepresents aCookieOriginproduced in the context of request execution.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getCookieOriginin classHttpClientContext
-
setCookieOrigin
- Overrides:
setCookieOriginin classHttpClientContext
-
getCookieSpecRegistry
Description copied from class:HttpClientContextRepresents aCookieSpecFactoryregistry used in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getCookieSpecRegistryin classHttpClientContext
-
setCookieSpecRegistry
- Overrides:
setCookieSpecRegistryin classHttpClientContext
-
getAuthSchemeRegistry
Description copied from class:HttpClientContextRepresents aAuthSchemeFactoryregistry used in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getAuthSchemeRegistryin classHttpClientContext
-
setAuthSchemeRegistry
- Overrides:
setAuthSchemeRegistryin classHttpClientContext
-
getCredentialsProvider
Description copied from class:HttpClientContextRepresents aCredentialsProviderregistry used in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getCredentialsProviderin classHttpClientContext
-
setCredentialsProvider
- Overrides:
setCredentialsProviderin classHttpClientContext
-
getAuthCache
Description copied from class:HttpClientContextRepresents aAuthCacheused in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getAuthCachein classHttpClientContext
-
setAuthCache
- Overrides:
setAuthCachein classHttpClientContext
-
getAuthExchanges
Description copied from class:HttpClientContextRepresents a map ofAuthExchanges performed in the context of the request execution.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getAuthExchangesin classHttpClientContext
-
getUserToken
Description copied from class:HttpClientContextRepresents an arbitrary user token that identifies the user in the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getUserTokenin classHttpClientContext
-
setUserToken
- Overrides:
setUserTokenin classHttpClientContext
-
getRequestConfig
Description copied from class:HttpClientContextRepresents anusedin the context of the request execution.This context attribute can be set by the caller.
- Overrides:
getRequestConfigin classHttpClientContext
-
setRequestConfig
- Overrides:
setRequestConfigin classHttpClientContext
-
getExchangeId
Description copied from class:HttpClientContextRepresents an identifier generated for the current message exchange executed in the given context.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getExchangeIdin classHttpClientContext
-
setExchangeId
- Overrides:
setExchangeIdin classHttpClientContext
-
getRequest
public org.apache.hc.core5.http.HttpRequest getRequest()- Overrides:
getRequestin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
setRequest
public void setRequest(org.apache.hc.core5.http.HttpRequest request) - Overrides:
setRequestin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
getResponse
public org.apache.hc.core5.http.HttpResponse getResponse()- Overrides:
getResponsein classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
setResponse
public void setResponse(org.apache.hc.core5.http.HttpResponse response) - Overrides:
setResponsein classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
getEndpointDetails
public org.apache.hc.core5.http.EndpointDetails getEndpointDetails()- Overrides:
getEndpointDetailsin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
setEndpointDetails
public void setEndpointDetails(org.apache.hc.core5.http.EndpointDetails endpointDetails) - Overrides:
setEndpointDetailsin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
getSSLSession
- Overrides:
getSSLSessionin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
setSSLSession
- Overrides:
setSSLSessionin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
getProtocolVersion
public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersionin interfaceorg.apache.hc.core5.http.protocol.HttpContext- Overrides:
getProtocolVersionin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
setProtocolVersion
public void setProtocolVersion(org.apache.hc.core5.http.ProtocolVersion version) - Specified by:
setProtocolVersionin interfaceorg.apache.hc.core5.http.protocol.HttpContext- Overrides:
setProtocolVersionin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-
getAttribute
-
setAttribute
-
removeAttribute
-
getAttribute
-
toString
- Overrides:
toStringin classorg.apache.hc.core5.http.protocol.HttpCoreContext
-