@Implements(value=org.apache.http.impl.client.DefaultRequestDirector.class) public class ShadowDefaultRequestDirector extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.conn.ConnectionKeepAliveStrategy |
connectionKeepAliveStrategy |
protected org.apache.http.conn.ClientConnectionManager |
connectionManager |
protected org.apache.http.ConnectionReuseStrategy |
connectionReuseStrategy |
protected org.apache.http.params.HttpParams |
httpParams |
protected org.apache.http.protocol.HttpProcessor |
httpProcessor |
protected org.apache.http.protocol.HttpRequestExecutor |
httpRequestExecutor |
protected org.apache.http.client.HttpRequestRetryHandler |
httpRequestRetryHandler |
protected org.apache.http.conn.routing.HttpRoutePlanner |
httpRoutePlanner |
protected org.apache.commons.logging.Log |
log |
protected org.apache.http.client.AuthenticationHandler |
proxyAuthenticationHandler |
protected org.apache.http.client.RedirectHandler |
redirectHandler |
protected org.apache.http.client.AuthenticationHandler |
targetAuthenticationHandler |
protected org.apache.http.client.UserTokenHandler |
userTokenHandler |
Constructor and Description |
---|
ShadowDefaultRequestDirector() |
Modifier and Type | Method and Description |
---|---|
protected void |
__constructor__(org.apache.http.protocol.HttpRequestExecutor requestExec,
org.apache.http.conn.ClientConnectionManager conman,
org.apache.http.ConnectionReuseStrategy reustrat,
org.apache.http.conn.ConnectionKeepAliveStrategy kastrat,
org.apache.http.conn.routing.HttpRoutePlanner rouplan,
org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.client.HttpRequestRetryHandler retryHandler,
org.apache.http.client.RedirectHandler redirectHandler,
org.apache.http.client.AuthenticationHandler targetAuthHandler,
org.apache.http.client.AuthenticationHandler proxyAuthHandler,
org.apache.http.client.UserTokenHandler userTokenHandler,
org.apache.http.params.HttpParams params) |
protected void |
__constructor__(org.apache.commons.logging.Log log,
org.apache.http.protocol.HttpRequestExecutor requestExec,
org.apache.http.conn.ClientConnectionManager conman,
org.apache.http.ConnectionReuseStrategy reustrat,
org.apache.http.conn.ConnectionKeepAliveStrategy kastrat,
org.apache.http.conn.routing.HttpRoutePlanner rouplan,
org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.client.HttpRequestRetryHandler retryHandler,
org.apache.http.client.RedirectHandler redirectHandler,
org.apache.http.client.AuthenticationHandler targetAuthHandler,
org.apache.http.client.AuthenticationHandler proxyAuthHandler,
org.apache.http.client.UserTokenHandler userTokenHandler,
org.apache.http.params.HttpParams params) |
protected org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost httpHost,
org.apache.http.HttpRequest httpRequest,
org.apache.http.protocol.HttpContext httpContext) |
org.apache.http.conn.ConnectionKeepAliveStrategy |
getConnectionKeepAliveStrategy() |
org.apache.http.conn.ClientConnectionManager |
getConnectionManager() |
org.apache.http.ConnectionReuseStrategy |
getConnectionReuseStrategy() |
org.apache.http.params.HttpParams |
getHttpParams() |
org.apache.http.protocol.HttpProcessor |
getHttpProcessor() |
org.apache.http.protocol.HttpRequestExecutor |
getHttpRequestExecutor() |
org.apache.http.client.HttpRequestRetryHandler |
getHttpRequestRetryHandler() |
org.apache.http.conn.routing.HttpRoutePlanner |
getHttpRoutePlanner() |
static org.apache.http.HttpRequest |
getLatestSentHttpRequest() |
static HttpRequestInfo |
getLatestSentHttpRequestInfo() |
org.apache.commons.logging.Log |
getLog() |
org.apache.http.client.AuthenticationHandler |
getProxyAuthenticationHandler() |
org.apache.http.client.RedirectHandler |
getRedirectHandler() |
static org.apache.http.HttpRequest |
getSentHttpRequest(int index)
Deprecated.
Use
FakeHttp.getSentHttpRequestInfo(int) instead.) |
static HttpRequestInfo |
getSentHttpRequestInfo(int index)
Deprecated.
Use
FakeHttp.getSentHttpRequest(int) instead.) |
org.apache.http.client.AuthenticationHandler |
getTargetAuthenticationHandler() |
org.apache.http.client.UserTokenHandler |
getUserTokenHandler() |
static void |
reset() |
protected org.apache.commons.logging.Log log
protected org.apache.http.conn.ClientConnectionManager connectionManager
protected org.apache.http.conn.routing.HttpRoutePlanner httpRoutePlanner
protected org.apache.http.ConnectionReuseStrategy connectionReuseStrategy
protected org.apache.http.conn.ConnectionKeepAliveStrategy connectionKeepAliveStrategy
protected org.apache.http.protocol.HttpRequestExecutor httpRequestExecutor
protected org.apache.http.protocol.HttpProcessor httpProcessor
protected org.apache.http.client.HttpRequestRetryHandler httpRequestRetryHandler
protected org.apache.http.client.RedirectHandler redirectHandler
protected org.apache.http.client.AuthenticationHandler targetAuthenticationHandler
protected org.apache.http.client.AuthenticationHandler proxyAuthenticationHandler
protected org.apache.http.client.UserTokenHandler userTokenHandler
protected org.apache.http.params.HttpParams httpParams
@Implementation protected void __constructor__(org.apache.commons.logging.Log log, org.apache.http.protocol.HttpRequestExecutor requestExec, org.apache.http.conn.ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, org.apache.http.conn.ConnectionKeepAliveStrategy kastrat, org.apache.http.conn.routing.HttpRoutePlanner rouplan, org.apache.http.protocol.HttpProcessor httpProcessor, org.apache.http.client.HttpRequestRetryHandler retryHandler, org.apache.http.client.RedirectHandler redirectHandler, org.apache.http.client.AuthenticationHandler targetAuthHandler, org.apache.http.client.AuthenticationHandler proxyAuthHandler, org.apache.http.client.UserTokenHandler userTokenHandler, org.apache.http.params.HttpParams params)
@Implementation protected void __constructor__(org.apache.http.protocol.HttpRequestExecutor requestExec, org.apache.http.conn.ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, org.apache.http.conn.ConnectionKeepAliveStrategy kastrat, org.apache.http.conn.routing.HttpRoutePlanner rouplan, org.apache.http.protocol.HttpProcessor httpProcessor, org.apache.http.client.HttpRequestRetryHandler retryHandler, org.apache.http.client.RedirectHandler redirectHandler, org.apache.http.client.AuthenticationHandler targetAuthHandler, org.apache.http.client.AuthenticationHandler proxyAuthHandler, org.apache.http.client.UserTokenHandler userTokenHandler, org.apache.http.params.HttpParams params)
@Deprecated public static org.apache.http.HttpRequest getSentHttpRequest(int index)
FakeHttp.getSentHttpRequestInfo(int)
instead.)index
- The indexpublic static org.apache.http.HttpRequest getLatestSentHttpRequest()
public static HttpRequestInfo getLatestSentHttpRequestInfo()
@Deprecated public static HttpRequestInfo getSentHttpRequestInfo(int index)
FakeHttp.getSentHttpRequest(int)
instead.)index
- The index@Implementation protected org.apache.http.HttpResponse execute(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext) throws org.apache.http.HttpException, java.io.IOException
org.apache.http.HttpException
java.io.IOException
public org.apache.commons.logging.Log getLog()
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
public org.apache.http.conn.routing.HttpRoutePlanner getHttpRoutePlanner()
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()
public org.apache.http.conn.ConnectionKeepAliveStrategy getConnectionKeepAliveStrategy()
public org.apache.http.protocol.HttpRequestExecutor getHttpRequestExecutor()
public org.apache.http.protocol.HttpProcessor getHttpProcessor()
public org.apache.http.client.HttpRequestRetryHandler getHttpRequestRetryHandler()
public org.apache.http.client.RedirectHandler getRedirectHandler()
public org.apache.http.client.AuthenticationHandler getTargetAuthenticationHandler()
public org.apache.http.client.AuthenticationHandler getProxyAuthenticationHandler()
public org.apache.http.client.UserTokenHandler getUserTokenHandler()
public org.apache.http.params.HttpParams getHttpParams()
@Resetter public static void reset()