public class HttpCacheContext extends HttpClientContext
HttpContext
attributes.Modifier and Type | Field and Description |
---|---|
static String |
CACHE_RESPONSE_STATUS
This is the name under which the
CacheResponseStatus of a request
(for example, whether it resulted in a cache hit) will be recorded if an
HttpContext is provided during execution. |
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_TOKEN
CONNECTION_ENDPOINT, HTTP_REQUEST, HTTP_RESPONSE, SSL_SESSION
RESERVED_PREFIX
Constructor and Description |
---|
HttpCacheContext() |
HttpCacheContext(HttpContext context) |
Modifier and Type | Method and Description |
---|---|
static HttpCacheContext |
adapt(HttpContext context) |
static HttpCacheContext |
create() |
CacheResponseStatus |
getCacheResponseStatus() |
getAuthCache, getAuthExchange, getAuthExchanges, getAuthSchemeRegistry, getCookieOrigin, getCookieSpec, getCookieSpecRegistry, getCookieStore, getCredentialsProvider, getExchangeId, getHttpRoute, getRedirectLocations, getRequestConfig, getUserToken, getUserToken, resetAuthExchange, setAuthCache, setAuthExchange, setAuthSchemeRegistry, setCookieSpecRegistry, setCookieStore, setCredentialsProvider, setExchangeId, setRequestConfig, setUserToken
getAttribute, getAttribute, getEndpointDetails, getProtocolVersion, getRequest, getResponse, getSSLSession, removeAttribute, setAttribute, setProtocolVersion, toString
public static final String CACHE_RESPONSE_STATUS
CacheResponseStatus
of a request
(for example, whether it resulted in a cache hit) will be recorded if an
HttpContext
is provided during execution.public HttpCacheContext(HttpContext context)
public HttpCacheContext()
public static HttpCacheContext adapt(HttpContext context)
public static HttpCacheContext create()
public CacheResponseStatus getCacheResponseStatus()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.