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
Modifier and TypeFieldDescriptionprotected ConnectionKeepAliveStrategy
protected ClientConnectionManager
protected org.apache.http.ConnectionReuseStrategy
protected HttpParams
protected org.apache.http.protocol.HttpProcessor
protected org.apache.http.protocol.HttpRequestExecutor
protected org.apache.http.client.HttpRequestRetryHandler
protected org.apache.http.conn.routing.HttpRoutePlanner
protected org.apache.commons.logging.Log
protected org.apache.http.client.AuthenticationHandler
protected org.apache.http.client.RedirectHandler
protected org.apache.http.client.AuthenticationHandler
protected org.apache.http.client.UserTokenHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.HttpResponse
execute
(org.apache.http.HttpHost httpHost, org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext) org.apache.http.ConnectionReuseStrategy
org.apache.http.protocol.HttpProcessor
org.apache.http.protocol.HttpRequestExecutor
org.apache.http.client.HttpRequestRetryHandler
org.apache.http.conn.routing.HttpRoutePlanner
static org.apache.http.HttpRequest
static HttpRequestInfo
org.apache.commons.logging.Log
getLog()
org.apache.http.client.AuthenticationHandler
org.apache.http.client.RedirectHandler
static org.apache.http.HttpRequest
getSentHttpRequest
(int index) Deprecated.static HttpRequestInfo
getSentHttpRequestInfo
(int index) Deprecated.UseFakeHttp.getSentHttpRequest(int)
instead.org.apache.http.client.AuthenticationHandler
org.apache.http.client.UserTokenHandler
static void
reset()
-
Field Details
-
log
protected org.apache.commons.logging.Log log -
connectionManager
-
httpRoutePlanner
protected org.apache.http.conn.routing.HttpRoutePlanner httpRoutePlanner -
connectionReuseStrategy
protected org.apache.http.ConnectionReuseStrategy connectionReuseStrategy -
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
-
-
Constructor Details
-
ShadowDefaultRequestDirector
public ShadowDefaultRequestDirector()
-
-
Method Details
-
__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 @InlineMe(replacement="FakeHttp.getFakeHttpLayer().getSentHttpRequestInfo(index).getHttpRequest()", imports="org.robolectric.shadows.httpclient.FakeHttp") public static org.apache.http.HttpRequest getSentHttpRequest(int index) Deprecated.UseFakeHttp.getSentHttpRequestInfo(int)
instead. This method will be removed in Robolectric 4.13.Get the sentHttpRequest
for the given index.- Parameters:
index
- The index- Returns:
- HttpRequest
-
getLatestSentHttpRequest
public static org.apache.http.HttpRequest getLatestSentHttpRequest() -
getLatestSentHttpRequestInfo
-
getSentHttpRequestInfo
@Deprecated @InlineMe(replacement="FakeHttp.getFakeHttpLayer().getSentHttpRequestInfo(index)", imports="org.robolectric.shadows.httpclient.FakeHttp") public static HttpRequestInfo getSentHttpRequestInfo(int index) Deprecated.UseFakeHttp.getSentHttpRequest(int)
instead. This method will be removed in Robolectric 4.13.Get the sentHttpRequestInfo
for the given index.- 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.HttpException
IOException
-
getLog
public org.apache.commons.logging.Log getLog() -
getConnectionManager
-
getHttpRoutePlanner
public org.apache.http.conn.routing.HttpRoutePlanner getHttpRoutePlanner() -
getConnectionReuseStrategy
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy() -
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
-
reset
-
FakeHttp.getSentHttpRequestInfo(int)
instead.