public void __constructor__(
Log log,
HttpRequestExecutor requestExec,
ClientConnectionManager conman,
ConnectionReuseStrategy reustrat,
ConnectionKeepAliveStrategy kastrat,
HttpRoutePlanner rouplan,
HttpProcessor httpProcessor,
HttpRequestRetryHandler retryHandler,
RedirectHandler redirectHandler,
AuthenticationHandler targetAuthHandler,
AuthenticationHandler proxyAuthHandler,
UserTokenHandler userTokenHandler,
HttpParams params) {
this.log = log;
this.httpRequestExecutor = requestExec;
this.connectionManager = conman;
this.connectionReuseStrategy = reustrat;
this.connectionKeepAliveStrategy = kastrat;
this.httpRoutePlanner = rouplan;
this.httpProcessor = httpProcessor;
this.httpRequestRetryHandler = retryHandler;
this.redirectHandler = redirectHandler;
this.targetAuthenticationHandler = targetAuthHandler;
this.proxyAuthenticationHandler = proxyAuthHandler;
this.userTokenHandler = userTokenHandler;
this.httpParams = params;
try {
redirector = new org.robolectric.tester.org.apache.http.impl.client.DefaultRequestDirector(
log,
requestExec,
conman,
reustrat,
kastrat,
rouplan,
httpProcessor,
retryHandler,
redirectHandler,
targetAuthHandler,
proxyAuthHandler,
userTokenHandler,
params
);
} catch (IllegalArgumentException ignored) {
Robolectric.getFakeHttpLayer().interceptHttpRequests(true);
}
}
ShadowDefaultRequestDirector.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:FullRobolectricTestSample
作者:
评论列表
文章目录