Package org.apache.http.client.protocol
Class HttpClientContext
java.lang.Object
org.apache.http.protocol.HttpCoreContext
org.apache.http.client.protocol.HttpClientContext
- All Implemented Interfaces:
HttpContext
- Direct Known Subclasses:
HttpCacheContext
Adaptor class that provides convenience type safe setters and getters
for common
HttpContext
attributes used in the course
of HTTP request execution.- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Attribute name of aAuthCache
object that represents the auth scheme cache.static final String
Attribute name of aLookup
object that represents the actualAuthSchemeProvider
registry.static final String
Attribute name of aCookieOrigin
object that represents the actual details of the origin server.static final String
Attribute name of aCookieSpec
object that represents the actual cookie specification.static final String
Attribute name of aCookieStore
object that represents the actual cookie store.static final String
Attribute name of aLookup
object that represents the actualCookieSpecProvider
registry.static final String
Attribute name of aCredentialsProvider
object that represents the actual credentials provider.static final String
Attribute name of aRouteInfo
object that represents the actual connection route.static final String
Attribute name of aAuthState
object that represents the actual proxy authentication state.static final String
Attribute name of aList
object that represents a collection of all redirect locations received in the process of request execution.static final String
Attribute name of aRequestConfig
object that represents the actual request configuration.static final String
Attribute name of aAuthState
object that represents the actual target authentication state.static final String
Fields inherited from class org.apache.http.protocol.HttpCoreContext
HTTP_CONNECTION, HTTP_REQ_SENT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_TARGET_HOST
Fields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClientContext
adapt
(HttpContext context) static HttpClientContext
create()
<T> T
getUserToken
(Class<T> clazz) void
setAuthCache
(AuthCache authCache) void
void
void
setCookieStore
(CookieStore cookieStore) void
setCredentialsProvider
(CredentialsProvider credentialsProvider) void
setRequestConfig
(RequestConfig config) void
setUserToken
(Object obj) Methods inherited from class org.apache.http.protocol.HttpCoreContext
getAttribute, getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, removeAttribute, setAttribute, setTargetHost
-
Field Details
-
HTTP_ROUTE
Attribute name of aRouteInfo
object that represents the actual connection route.- See Also:
-
REDIRECT_LOCATIONS
Attribute name of aList
object that represents a collection of all redirect locations received in the process of request execution.- See Also:
-
COOKIESPEC_REGISTRY
Attribute name of aLookup
object that represents the actualCookieSpecProvider
registry.- See Also:
-
COOKIE_SPEC
Attribute name of aCookieSpec
object that represents the actual cookie specification.- See Also:
-
COOKIE_ORIGIN
Attribute name of aCookieOrigin
object that represents the actual details of the origin server.- See Also:
-
COOKIE_STORE
Attribute name of aCookieStore
object that represents the actual cookie store.- See Also:
-
CREDS_PROVIDER
Attribute name of aCredentialsProvider
object that represents the actual credentials provider.- See Also:
-
AUTH_CACHE
Attribute name of aAuthCache
object that represents the auth scheme cache.- See Also:
-
TARGET_AUTH_STATE
Attribute name of aAuthState
object that represents the actual target authentication state.- See Also:
-
PROXY_AUTH_STATE
Attribute name of aAuthState
object that represents the actual proxy authentication state.- See Also:
-
USER_TOKEN
- See Also:
-
AUTHSCHEME_REGISTRY
Attribute name of aLookup
object that represents the actualAuthSchemeProvider
registry.- See Also:
-
REQUEST_CONFIG
Attribute name of aRequestConfig
object that represents the actual request configuration.- See Also:
-
-
Constructor Details
-
HttpClientContext
-
HttpClientContext
public HttpClientContext()
-
-
Method Details
-
adapt
-
create
-
getHttpRoute
-
getRedirectLocations
-
getCookieStore
-
setCookieStore
-
getCookieSpec
-
getCookieOrigin
-
getCookieSpecRegistry
-
setCookieSpecRegistry
-
getAuthSchemeRegistry
-
setAuthSchemeRegistry
-
getCredentialsProvider
-
setCredentialsProvider
-
getAuthCache
-
setAuthCache
-
getTargetAuthState
-
getProxyAuthState
-
getUserToken
-
getUserToken
-
setUserToken
-
getRequestConfig
-
setRequestConfig
-