本文整理匯總了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);
}