final class SharingHttpContext
extends org.apache.http.client.protocol.HttpClientContext
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
private SharingAuthCache |
authCache |
private LocalState |
state |
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_TOKEN
Constructor and Description |
---|
SharingHttpContext(LocalState state) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.Object |
getAttribute(java.lang.String id) |
java.lang.Object |
removeAttribute(java.lang.String id) |
void |
setAttribute(java.lang.String id,
java.lang.Object obj) |
adapt, create, getAuthCache, getAuthSchemeRegistry, getCookieOrigin, getCookieSpec, getCookieSpecRegistry, getCookieStore, getCredentialsProvider, getHttpRoute, getProxyAuthState, getRedirectLocations, getRequestConfig, getTargetAuthState, getUserToken, getUserToken, setAuthCache, setAuthSchemeRegistry, setCookieSpecRegistry, setCookieStore, setCredentialsProvider, setRequestConfig, setUserToken
private final LocalState state
private final SharingAuthCache authCache
SharingHttpContext(LocalState state)
public java.lang.Object getAttribute(java.lang.String id)
getAttribute
in interface org.apache.http.protocol.HttpContext
getAttribute
in class org.apache.http.protocol.HttpCoreContext
public void setAttribute(java.lang.String id, java.lang.Object obj)
setAttribute
in interface org.apache.http.protocol.HttpContext
setAttribute
in class org.apache.http.protocol.HttpCoreContext
public java.lang.Object removeAttribute(java.lang.String id)
removeAttribute
in interface org.apache.http.protocol.HttpContext
removeAttribute
in class org.apache.http.protocol.HttpCoreContext
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable