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 StringAttribute name of aAuthCacheobject that represents the auth scheme cache.static final StringAttribute name of aLookupobject that represents the actualAuthSchemeProviderregistry.static final StringAttribute name of aCookieOriginobject that represents the actual details of the origin server.static final StringAttribute name of aCookieSpecobject that represents the actual cookie specification.static final StringAttribute name of aCookieStoreobject that represents the actual cookie store.static final StringAttribute name of aLookupobject that represents the actualCookieSpecProviderregistry.static final StringAttribute name of aCredentialsProviderobject that represents the actual credentials provider.static final StringAttribute name of aRouteInfoobject that represents the actual connection route.static final StringAttribute name of aAuthStateobject that represents the actual proxy authentication state.static final StringAttribute name of aListobject that represents a collection of all redirect locations received in the process of request execution.static final StringAttribute name of aRequestConfigobject that represents the actual request configuration.static final StringAttribute name of aAuthStateobject that represents the actual target authentication state.static final StringFields 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 HttpClientContextadapt(HttpContext context) static HttpClientContextcreate()<T> TgetUserToken(Class<T> clazz) voidsetAuthCache(AuthCache authCache) voidvoidvoidsetCookieStore(CookieStore cookieStore) voidsetCredentialsProvider(CredentialsProvider credentialsProvider) voidsetRequestConfig(RequestConfig config) voidsetUserToken(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 aRouteInfoobject that represents the actual connection route.- See Also:
-
REDIRECT_LOCATIONS
Attribute name of aListobject that represents a collection of all redirect locations received in the process of request execution.- See Also:
-
COOKIESPEC_REGISTRY
Attribute name of aLookupobject that represents the actualCookieSpecProviderregistry.- See Also:
-
COOKIE_SPEC
Attribute name of aCookieSpecobject that represents the actual cookie specification.- See Also:
-
COOKIE_ORIGIN
Attribute name of aCookieOriginobject that represents the actual details of the origin server.- See Also:
-
COOKIE_STORE
Attribute name of aCookieStoreobject that represents the actual cookie store.- See Also:
-
CREDS_PROVIDER
Attribute name of aCredentialsProviderobject that represents the actual credentials provider.- See Also:
-
AUTH_CACHE
Attribute name of aAuthCacheobject that represents the auth scheme cache.- See Also:
-
TARGET_AUTH_STATE
Attribute name of aAuthStateobject that represents the actual target authentication state.- See Also:
-
PROXY_AUTH_STATE
Attribute name of aAuthStateobject that represents the actual proxy authentication state.- See Also:
-
USER_TOKEN
- See Also:
-
AUTHSCHEME_REGISTRY
Attribute name of aLookupobject that represents the actualAuthSchemeProviderregistry.- See Also:
-
REQUEST_CONFIG
Attribute name of aRequestConfigobject 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
-