本文整理汇总了Java中ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner类的典型用法代码示例。如果您正苦于以下问题:Java HttpRoutePlanner类的具体用法?Java HttpRoutePlanner怎么用?Java HttpRoutePlanner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HttpRoutePlanner类属于ch.boye.httpclientandroidlib.conn.routing包,在下文中一共展示了HttpRoutePlanner类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DefaultRequestDirector
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
@Deprecated
public DefaultRequestDirector(
final HttpRequestExecutor requestExec,
final ClientConnectionManager conman,
final ConnectionReuseStrategy reustrat,
final ConnectionKeepAliveStrategy kastrat,
final HttpRoutePlanner rouplan,
final HttpProcessor httpProcessor,
final HttpRequestRetryHandler retryHandler,
final RedirectHandler redirectHandler,
final AuthenticationHandler targetAuthHandler,
final AuthenticationHandler proxyAuthHandler,
final UserTokenHandler userTokenHandler,
final HttpParams params) {
this(new HttpClientAndroidLog(DefaultRequestDirector.class),
requestExec, conman, reustrat, kastrat, rouplan, httpProcessor, retryHandler,
new DefaultRedirectStrategyAdaptor(redirectHandler),
new AuthenticationStrategyAdaptor(targetAuthHandler),
new AuthenticationStrategyAdaptor(proxyAuthHandler),
userTokenHandler,
params);
}
示例2: InternalHttpClient
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
public InternalHttpClient(
final ClientExecChain execChain,
final HttpClientConnectionManager connManager,
final HttpRoutePlanner routePlanner,
final Lookup<CookieSpecProvider> cookieSpecRegistry,
final Lookup<AuthSchemeProvider> authSchemeRegistry,
final CookieStore cookieStore,
final CredentialsProvider credentialsProvider,
final RequestConfig defaultConfig,
final List<Closeable> closeables) {
super();
Args.notNull(execChain, "HTTP client exec chain");
Args.notNull(connManager, "HTTP connection manager");
Args.notNull(routePlanner, "HTTP route planner");
this.execChain = execChain;
this.connManager = connManager;
this.routePlanner = routePlanner;
this.cookieSpecRegistry = cookieSpecRegistry;
this.authSchemeRegistry = authSchemeRegistry;
this.cookieStore = cookieStore;
this.credentialsProvider = credentialsProvider;
this.defaultConfig = defaultConfig;
this.closeables = closeables;
}
示例3: RedirectExec
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
public RedirectExec(
final ClientExecChain requestExecutor,
final HttpRoutePlanner routePlanner,
final RedirectStrategy redirectStrategy) {
super();
Args.notNull(requestExecutor, "HTTP client request executor");
Args.notNull(routePlanner, "HTTP route planner");
Args.notNull(redirectStrategy, "HTTP redirect strategy");
this.requestExecutor = requestExecutor;
this.routePlanner = routePlanner;
this.redirectStrategy = redirectStrategy;
}
示例4: createClientRequestDirector
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
/**
* @deprecated (4.1) do not use
*/
@Deprecated
protected RequestDirector createClientRequestDirector(
final HttpRequestExecutor requestExec,
final ClientConnectionManager conman,
final ConnectionReuseStrategy reustrat,
final ConnectionKeepAliveStrategy kastrat,
final HttpRoutePlanner rouplan,
final HttpProcessor httpProcessor,
final HttpRequestRetryHandler retryHandler,
final RedirectHandler redirectHandler,
final AuthenticationHandler targetAuthHandler,
final AuthenticationHandler proxyAuthHandler,
final UserTokenHandler userTokenHandler,
final HttpParams params) {
return new DefaultRequestDirector(
requestExec,
conman,
reustrat,
kastrat,
rouplan,
httpProcessor,
retryHandler,
redirectHandler,
targetAuthHandler,
proxyAuthHandler,
userTokenHandler,
params);
}
示例5: createHttpRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
protected HttpRoutePlanner createHttpRoutePlanner() {
return new DefaultHttpRoutePlanner(getConnectionManager().getSchemeRegistry());
}
示例6: getRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
public synchronized final HttpRoutePlanner getRoutePlanner() {
if (this.routePlanner == null) {
this.routePlanner = createHttpRoutePlanner();
}
return this.routePlanner;
}
示例7: setRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
public synchronized void setRoutePlanner(final HttpRoutePlanner routePlanner) {
this.routePlanner = routePlanner;
}
示例8: setRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
/**
* Assigns {@link HttpRoutePlanner} instance.
*/
public final HttpClientBuilder setRoutePlanner(final HttpRoutePlanner routePlanner) {
this.routePlanner = routePlanner;
return this;
}
示例9: createHttpRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
@Override
protected HttpRoutePlanner createHttpRoutePlanner() {
return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(),
ProxySelector.getDefault());
}
示例10: createDefaultRoutePlanner
import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
/**
* Override to provide proxy configuration
*
* @param schemeRegistry
* Protocol registry
* @param selector
* Proxy configuration
* @return ProxySelectorRoutePlanner configured with schemeRegistry and
* selector
*/
protected HttpRoutePlanner createDefaultRoutePlanner(
SchemeRegistry schemeRegistry, ProxySelector selector) {
return new ProxySelectorRoutePlanner(schemeRegistry, selector);
}