org.apache.http.client.protocol
Class HttpClientContext
java.lang.Object
org.apache.http.protocol.HttpCoreContext
org.apache.http.client.protocol.HttpClientContext
- All Implemented Interfaces:
- ClientContext, ExecutionContext, HttpContext
- Direct Known Subclasses:
- HttpCacheContext
@NotThreadSafe
public class HttpClientContext
- extends HttpCoreContext
- implements ClientContext
Implementation of HttpContext
that provides convenience
setters for user assignable attributes and getter for readable attributes.
- Since:
- 4.3
Fields inherited from interface org.apache.http.client.protocol.ClientContext |
AUTH_CACHE, AUTH_SCHEME_PREF, AUTHSCHEME_REGISTRY, COOKIE_ORIGIN, COOKIE_SPEC, COOKIE_STORE, COOKIESPEC_REGISTRY, CREDS_PROVIDER, PROXY_AUTH_STATE, REQUEST_CONFIG, ROUTE, SCHEME_REGISTRY, SOCKET_FACTORY_REGISTRY, TARGET_AUTH_STATE, USER_TOKEN |
Methods inherited from class org.apache.http.protocol.HttpCoreContext |
getAttribute, getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, removeAttribute, setAttribute, setTargetHost |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientContext
public HttpClientContext(HttpContext context)
HttpClientContext
public HttpClientContext()
adapt
public static HttpClientContext adapt(HttpContext context)
create
public static HttpClientContext create()
getHttpRoute
public RouteInfo getHttpRoute()
getCookieStore
public CookieStore getCookieStore()
setCookieStore
public void setCookieStore(CookieStore cookieStore)
getCookieSpec
public CookieSpec getCookieSpec()
getCookieOrigin
public CookieOrigin getCookieOrigin()
getLookup
protected <T> org.apache.http.config.Lookup<T> getLookup(String name,
Class<T> clazz)
getCookieSpecRegistry
public org.apache.http.config.Lookup<CookieSpecProvider> getCookieSpecRegistry()
setCookieSpecRegistry
public void setCookieSpecRegistry(org.apache.http.config.Lookup<CookieSpecProvider> lookup)
getAuthSchemeRegistry
public org.apache.http.config.Lookup<AuthSchemeProvider> getAuthSchemeRegistry()
setAuthSchemeRegistry
public void setAuthSchemeRegistry(org.apache.http.config.Lookup<AuthSchemeProvider> lookup)
getSocketFactoryRegistry
public org.apache.http.config.Lookup<ConnectionSocketFactory> getSocketFactoryRegistry()
setSocketFactoryRegistry
public void setSocketFactoryRegistry(org.apache.http.config.Lookup<ConnectionSocketFactory> lookup)
getCredentialsProvider
public CredentialsProvider getCredentialsProvider()
setCredentialsProvider
public void setCredentialsProvider(CredentialsProvider credentialsProvider)
getAuthCache
public AuthCache getAuthCache()
setAuthCache
public void setAuthCache(AuthCache authCache)
getTargetAuthState
public AuthState getTargetAuthState()
getProxyAuthState
public AuthState getProxyAuthState()
getUserToken
public <T> T getUserToken(Class<T> clazz)
getUserToken
public Object getUserToken()
setUserToken
public void setUserToken(Object obj)
getRequestConfig
public RequestConfig getRequestConfig()
setRequestConfig
public void setRequestConfig(RequestConfig config)
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.