当前位置: 首页>>代码示例>>Java>>正文


Java HttpRoutePlanner类代码示例

本文整理汇总了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);
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:23,代码来源:DefaultRequestDirector.java

示例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;
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:25,代码来源:InternalHttpClient.java

示例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;
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:13,代码来源:RedirectExec.java

示例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);
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:32,代码来源:AbstractHttpClient.java

示例5: createHttpRoutePlanner

import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
protected HttpRoutePlanner createHttpRoutePlanner() {
    return new DefaultHttpRoutePlanner(getConnectionManager().getSchemeRegistry());
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:4,代码来源:AbstractHttpClient.java

示例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;
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:7,代码来源:AbstractHttpClient.java

示例7: setRoutePlanner

import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
public synchronized void setRoutePlanner(final HttpRoutePlanner routePlanner) {
    this.routePlanner = routePlanner;
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:4,代码来源:AbstractHttpClient.java

示例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;
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:8,代码来源:HttpClientBuilder.java

示例9: createHttpRoutePlanner

import ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner; //导入依赖的package包/类
@Override
protected HttpRoutePlanner createHttpRoutePlanner() {
    return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(),
            ProxySelector.getDefault());
}
 
开发者ID:mozilla-mobile,项目名称:FirefoxData-android,代码行数:6,代码来源:SystemDefaultHttpClient.java

示例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);
}
 
开发者ID:starn,项目名称:encdroidMC,代码行数:15,代码来源:SardineImpl.java


注:本文中的ch.boye.httpclientandroidlib.conn.routing.HttpRoutePlanner类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。