Example usage for org.apache.http.impl.client AuthenticationStrategyAdaptor AuthenticationStrategyAdaptor

List of usage examples for org.apache.http.impl.client AuthenticationStrategyAdaptor AuthenticationStrategyAdaptor

Introduction

In this page you can find the example usage for org.apache.http.impl.client AuthenticationStrategyAdaptor AuthenticationStrategyAdaptor.

Prototype

public AuthenticationStrategyAdaptor(final AuthenticationHandler handler) 

Source Link

Usage

From source file:org.apache.http.impl.client.AbstractHttpClient.java

/**
 * @deprecated (4.2) do not use/*from  w ww . j  a v  a2  s.c  om*/
 */
@Deprecated
public synchronized void setTargetAuthenticationHandler(final AuthenticationHandler handler) {
    this.targetAuthStrategy = new AuthenticationStrategyAdaptor(handler);
}

From source file:org.apache.http.impl.client.AbstractHttpClient.java

/**
 * @deprecated (4.2) do not use/*from   ww  w.  ja va2  s. c o  m*/
 */
@Deprecated
public synchronized void setProxyAuthenticationHandler(final AuthenticationHandler handler) {
    this.proxyAuthStrategy = new AuthenticationStrategyAdaptor(handler);
}

From source file:org.apache.http.impl.client.DefaultRequestDirector.java

@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(LogFactory.getLog(DefaultRequestDirector.class), requestExec, conman, reustrat, kastrat, rouplan,
            httpProcessor, retryHandler, new DefaultRedirectStrategyAdaptor(redirectHandler),
            new AuthenticationStrategyAdaptor(targetAuthHandler),
            new AuthenticationStrategyAdaptor(proxyAuthHandler), userTokenHandler, params);
}

From source file:org.apache.http.impl.client.DefaultRequestDirector.java

@Deprecated
public DefaultRequestDirector(final Log log, final HttpRequestExecutor requestExec,
        final ClientConnectionManager conman, final ConnectionReuseStrategy reustrat,
        final ConnectionKeepAliveStrategy kastrat, final HttpRoutePlanner rouplan,
        final HttpProcessor httpProcessor, final HttpRequestRetryHandler retryHandler,
        final RedirectStrategy redirectStrategy, final AuthenticationHandler targetAuthHandler,
        final AuthenticationHandler proxyAuthHandler, final UserTokenHandler userTokenHandler,
        final HttpParams params) {
    this(LogFactory.getLog(DefaultRequestDirector.class), requestExec, conman, reustrat, kastrat, rouplan,
            httpProcessor, retryHandler, redirectStrategy, new AuthenticationStrategyAdaptor(targetAuthHandler),
            new AuthenticationStrategyAdaptor(proxyAuthHandler), userTokenHandler, params);
}