Package org.apache.http.client.cache
Class HttpCacheContext
java.lang.Object
org.apache.http.protocol.HttpCoreContext
org.apache.http.client.protocol.HttpClientContext
org.apache.http.client.cache.HttpCacheContext
- All Implemented Interfaces:
HttpContext
- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is the name under which theCacheResponseStatusof a request (for example, whether it resulted in a cache hit) will be recorded if anHttpContextis provided during execution.Fields inherited from class org.apache.http.client.protocol.HttpClientContext
AUTH_CACHE, AUTHSCHEME_REGISTRY, COOKIE_ORIGIN, COOKIE_SPEC, COOKIE_STORE, COOKIESPEC_REGISTRY, CREDS_PROVIDER, HTTP_ROUTE, PROXY_AUTH_STATE, REDIRECT_LOCATIONS, REQUEST_CONFIG, TARGET_AUTH_STATE, USER_TOKENFields inherited from class org.apache.http.protocol.HttpCoreContext
HTTP_CONNECTION, HTTP_REQ_SENT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_TARGET_HOSTFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCacheContextadapt(HttpContext context) static HttpCacheContextcreate()Methods inherited from class org.apache.http.client.protocol.HttpClientContext
getAuthCache, getAuthSchemeRegistry, getCookieOrigin, getCookieSpec, getCookieSpecRegistry, getCookieStore, getCredentialsProvider, getHttpRoute, getProxyAuthState, getRedirectLocations, getRequestConfig, getTargetAuthState, getUserToken, getUserToken, setAuthCache, setAuthSchemeRegistry, setCookieSpecRegistry, setCookieStore, setCredentialsProvider, setRequestConfig, setUserTokenMethods inherited from class org.apache.http.protocol.HttpCoreContext
getAttribute, getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, removeAttribute, setAttribute, setTargetHost
-
Field Details
-
CACHE_RESPONSE_STATUS
This is the name under which theCacheResponseStatusof a request (for example, whether it resulted in a cache hit) will be recorded if anHttpContextis provided during execution.- See Also:
-
-
Constructor Details
-
HttpCacheContext
-
HttpCacheContext
public HttpCacheContext()
-
-
Method Details
-
adapt
-
create
-
getCacheResponseStatus
-