public class OutgoingRequestContext
extends 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_TOKEN
Modifier and Type | Method and Description |
---|---|
static OutgoingRequestContext |
adapt(org.apache.http.protocol.HttpContext context) |
OutgoingRequest |
getOutgoingRequest() |
org.apache.http.HttpRequest |
getSentRequest() |
boolean |
isProxy() |
Object |
removeAttribute(String id,
boolean restore)
remove attribute and restore previous attribute value
|
void |
setAttribute(String id,
Object obj,
boolean save)
Set attribute and save previous attribute value
|
create, getAuthCache, getAuthSchemeRegistry, getCookieOrigin, getCookieSpec, getCookieSpecRegistry, getCookieStore, getCredentialsProvider, getHttpRoute, getProxyAuthState, getRedirectLocations, getRequestConfig, getTargetAuthState, getUserToken, getUserToken, setAuthCache, setAuthSchemeRegistry, setCookieSpecRegistry, setCookieStore, setCredentialsProvider, setRequestConfig, setUserToken
public static OutgoingRequestContext adapt(org.apache.http.protocol.HttpContext context)
public boolean isProxy()
public OutgoingRequest getOutgoingRequest()
public void setAttribute(String id, Object obj, boolean save)
id
- attribute nameobj
- valuesave
- save previous attribute value to restore laterpublic Object removeAttribute(String id, boolean restore)
id
- attribute namerestore
- restore previous attribute valuepublic org.apache.http.HttpRequest getSentRequest()
Copyright © 2008–2018. All rights reserved.