Class HttpCacheContext.Delegate
- All Implemented Interfaces:
org.apache.hc.core5.http.protocol.HttpContext
- Enclosing class:
HttpCacheContext
HttpClientContext.
To be removed in the future.- Since:
- 4.3
-
Nested Class Summary
Nested classes/interfaces inherited from class HttpCacheContext
HttpCacheContext.Delegate -
Field Summary
FieldsFields inherited from class HttpCacheContext
CACHE_ENTRY, CACHE_RESPONSE_STATUS, REQUEST_CACHE_CONTROL, RESPONSE_CACHE_CONTROLFields 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 TypeMethodDescriptiongetAttribute(String id) <T> TgetAttribute(String id, Class<T> clazz) Represents aAuthCacheused in the context of the request execution.getAuthExchange(org.apache.hc.core5.http.HttpHost host) 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 the cache entry the resource of which has been used to generate the response.Represents an outcome of the cache operation and the way the response has been generated.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 cache control requested by the client.Represents anusedin the context of the request execution.org.apache.hc.core5.http.HttpResponseRepresents cache control enforced by the server.Represents an arbitrary user token that identifies the user in the context of the request execution.voidresetAuthExchange(org.apache.hc.core5.http.HttpHost host, AuthScheme authScheme) setAttribute(String id, Object obj) voidsetAuthCache(AuthCache authCache) voidsetAuthExchange(org.apache.hc.core5.http.HttpHost host, AuthExchange authExchange) voidsetAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> lookup) voidsetCacheEntry(HttpCacheEntry cacheEntry) voidsetCacheResponseStatus(CacheResponseStatus responseStatus) 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) voidsetRequestCacheControl(RequestCacheControl requestCacheControl) voidsetRequestConfig(RequestConfig requestConfig) voidsetResponse(org.apache.hc.core5.http.HttpResponse response) voidsetResponseCacheControl(ResponseCacheControl responseCacheControl) voidvoidsetSSLSession(SSLSession sslSession) voidsetUserToken(Object userToken) toString()Methods inherited from class HttpCacheContext
adapt, cast, castOrCreate, create, getRequestCacheControlOrDefault, getResponseCacheControlOrDefaultMethods inherited from class HttpClientContext
getNextNonce, getRequestConfigOrDefault, getUserToken, setNextNonce
-
Field Details
-
clientContext
-
-
Constructor Details
-
Delegate
Delegate(HttpClientContext clientContext)
-
-
Method Details
-
getCacheResponseStatus
Description copied from class:HttpCacheContextRepresents an outcome of the cache operation and the way the response has been generated.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getCacheResponseStatusin classHttpCacheContext
-
setCacheResponseStatus
- Overrides:
setCacheResponseStatusin classHttpCacheContext
-
getRequestCacheControl
Description copied from class:HttpCacheContextRepresents cache control requested by the client.This context attribute is expected to be set by the caller.
- Overrides:
getRequestCacheControlin classHttpCacheContext
-
setRequestCacheControl
- Overrides:
setRequestCacheControlin classHttpCacheContext
-
getResponseCacheControl
Description copied from class:HttpCacheContextRepresents cache control enforced by the server.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getResponseCacheControlin classHttpCacheContext
-
setResponseCacheControl
- Overrides:
setResponseCacheControlin classHttpCacheContext
-
getCacheEntry
Description copied from class:HttpCacheContextRepresents the cache entry the resource of which has been used to generate the response.This context attribute is expected to be populated by the protocol handler.
- Overrides:
getCacheEntryin classHttpCacheContext
-
setCacheEntry
- Overrides:
setCacheEntryin classHttpCacheContext
-
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
-
getAuthExchange
- Overrides:
getAuthExchangein classHttpClientContext
-
setAuthExchange
- Overrides:
setAuthExchangein classHttpClientContext
-
resetAuthExchange
- Overrides:
resetAuthExchangein 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
-