當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。