Class ShadowDefaultRequestDirector
- java.lang.Object
-
- org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector
-
@Implements(org.apache.http.impl.client.DefaultRequestDirector.class) public class ShadowDefaultRequestDirector extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectionKeepAliveStrategyconnectionKeepAliveStrategyprotected ClientConnectionManagerconnectionManagerprotected org.apache.http.ConnectionReuseStrategyconnectionReuseStrategyprotected HttpParamshttpParamsprotected org.apache.http.protocol.HttpProcessorhttpProcessorprotected org.apache.http.protocol.HttpRequestExecutorhttpRequestExecutorprotected org.apache.http.client.HttpRequestRetryHandlerhttpRequestRetryHandlerprotected org.apache.http.conn.routing.HttpRoutePlannerhttpRoutePlannerprotected org.apache.commons.logging.Loglogprotected org.apache.http.client.AuthenticationHandlerproxyAuthenticationHandlerprotected org.apache.http.client.RedirectHandlerredirectHandlerprotected org.apache.http.client.AuthenticationHandlertargetAuthenticationHandlerprotected org.apache.http.client.UserTokenHandleruserTokenHandler
-
Constructor Summary
Constructors Constructor Description ShadowDefaultRequestDirector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void__constructor__(org.apache.commons.logging.Log log, org.apache.http.protocol.HttpRequestExecutor requestExec, ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, 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, HttpParams params)protected void__constructor__(org.apache.http.protocol.HttpRequestExecutor requestExec, ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, 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, HttpParams params)protected org.apache.http.HttpResponseexecute(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)ConnectionKeepAliveStrategygetConnectionKeepAliveStrategy()ClientConnectionManagergetConnectionManager()org.apache.http.ConnectionReuseStrategygetConnectionReuseStrategy()HttpParamsgetHttpParams()org.apache.http.protocol.HttpProcessorgetHttpProcessor()org.apache.http.protocol.HttpRequestExecutorgetHttpRequestExecutor()org.apache.http.client.HttpRequestRetryHandlergetHttpRequestRetryHandler()org.apache.http.conn.routing.HttpRoutePlannergetHttpRoutePlanner()static org.apache.http.HttpRequestgetLatestSentHttpRequest()static HttpRequestInfogetLatestSentHttpRequestInfo()org.apache.commons.logging.LoggetLog()org.apache.http.client.AuthenticationHandlergetProxyAuthenticationHandler()org.apache.http.client.RedirectHandlergetRedirectHandler()static org.apache.http.HttpRequestgetSentHttpRequest(int index)Deprecated.UseFakeHttp.getSentHttpRequestInfo(int)instead.)static HttpRequestInfogetSentHttpRequestInfo(int index)Deprecated.UseFakeHttp.getSentHttpRequest(int)instead.)org.apache.http.client.AuthenticationHandlergetTargetAuthenticationHandler()org.apache.http.client.UserTokenHandlergetUserTokenHandler()static voidreset()
-
-
-
Field Detail
-
log
protected org.apache.commons.logging.Log log
-
connectionManager
protected ClientConnectionManager connectionManager
-
httpRoutePlanner
protected org.apache.http.conn.routing.HttpRoutePlanner httpRoutePlanner
-
connectionReuseStrategy
protected org.apache.http.ConnectionReuseStrategy connectionReuseStrategy
-
connectionKeepAliveStrategy
protected ConnectionKeepAliveStrategy connectionKeepAliveStrategy
-
httpRequestExecutor
protected org.apache.http.protocol.HttpRequestExecutor httpRequestExecutor
-
httpProcessor
protected org.apache.http.protocol.HttpProcessor httpProcessor
-
httpRequestRetryHandler
protected org.apache.http.client.HttpRequestRetryHandler httpRequestRetryHandler
-
redirectHandler
protected org.apache.http.client.RedirectHandler redirectHandler
-
targetAuthenticationHandler
protected org.apache.http.client.AuthenticationHandler targetAuthenticationHandler
-
proxyAuthenticationHandler
protected org.apache.http.client.AuthenticationHandler proxyAuthenticationHandler
-
userTokenHandler
protected org.apache.http.client.UserTokenHandler userTokenHandler
-
httpParams
protected HttpParams httpParams
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(org.apache.commons.logging.Log log, org.apache.http.protocol.HttpRequestExecutor requestExec, ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, 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, HttpParams params)
-
__constructor__
@Implementation protected void __constructor__(org.apache.http.protocol.HttpRequestExecutor requestExec, ClientConnectionManager conman, org.apache.http.ConnectionReuseStrategy reustrat, 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, HttpParams params)
-
getSentHttpRequest
@Deprecated public static org.apache.http.HttpRequest getSentHttpRequest(int index)
Deprecated.UseFakeHttp.getSentHttpRequestInfo(int)instead.)- Parameters:
index- The index- Returns:
- HttpRequest
-
getLatestSentHttpRequest
public static org.apache.http.HttpRequest getLatestSentHttpRequest()
-
getLatestSentHttpRequestInfo
public static HttpRequestInfo getLatestSentHttpRequestInfo()
-
getSentHttpRequestInfo
@Deprecated public static HttpRequestInfo getSentHttpRequestInfo(int index)
Deprecated.UseFakeHttp.getSentHttpRequest(int)instead.)- Parameters:
index- The index- Returns:
- HttpRequestInfo
-
execute
@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, IOException
- Throws:
org.apache.http.HttpExceptionIOException
-
getLog
public org.apache.commons.logging.Log getLog()
-
getConnectionManager
public ClientConnectionManager getConnectionManager()
-
getHttpRoutePlanner
public org.apache.http.conn.routing.HttpRoutePlanner getHttpRoutePlanner()
-
getConnectionReuseStrategy
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()
-
getConnectionKeepAliveStrategy
public ConnectionKeepAliveStrategy getConnectionKeepAliveStrategy()
-
getHttpRequestExecutor
public org.apache.http.protocol.HttpRequestExecutor getHttpRequestExecutor()
-
getHttpProcessor
public org.apache.http.protocol.HttpProcessor getHttpProcessor()
-
getHttpRequestRetryHandler
public org.apache.http.client.HttpRequestRetryHandler getHttpRequestRetryHandler()
-
getRedirectHandler
public org.apache.http.client.RedirectHandler getRedirectHandler()
-
getTargetAuthenticationHandler
public org.apache.http.client.AuthenticationHandler getTargetAuthenticationHandler()
-
getProxyAuthenticationHandler
public org.apache.http.client.AuthenticationHandler getProxyAuthenticationHandler()
-
getUserTokenHandler
public org.apache.http.client.UserTokenHandler getUserTokenHandler()
-
getHttpParams
public HttpParams getHttpParams()
-
reset
@Resetter public static void reset()
-
-