Example usage for org.apache.http.impl.auth HttpAuthenticator HttpAuthenticator

List of usage examples for org.apache.http.impl.auth HttpAuthenticator HttpAuthenticator

Introduction

In this page you can find the example usage for org.apache.http.impl.auth HttpAuthenticator HttpAuthenticator.

Prototype

public HttpAuthenticator() 

Source Link

Usage

From source file:org.apache.http.impl.execchain.MainClientExec.java

public MainClientExec(final HttpRequestExecutor requestExecutor, final HttpClientConnectionManager connManager,
        final ConnectionReuseStrategy reuseStrategy, final ConnectionKeepAliveStrategy keepAliveStrategy,
        final AuthenticationStrategy targetAuthStrategy, final AuthenticationStrategy proxyAuthStrategy,
        final UserTokenHandler userTokenHandler) {
    Args.notNull(requestExecutor, "HTTP request executor");
    Args.notNull(connManager, "Client connection manager");
    Args.notNull(reuseStrategy, "Connection reuse strategy");
    Args.notNull(keepAliveStrategy, "Connection keep alive strategy");
    Args.notNull(targetAuthStrategy, "Target authentication strategy");
    Args.notNull(proxyAuthStrategy, "Proxy authentication strategy");
    Args.notNull(userTokenHandler, "User token handler");
    this.authenticator = new HttpAuthenticator();
    this.proxyHttpProcessor = new ImmutableHttpProcessor(new RequestTargetHost(),
            new RequestClientConnControl());
    this.routeDirector = new BasicRouteDirector();
    this.requestExecutor = requestExecutor;
    this.connManager = connManager;
    this.reuseStrategy = reuseStrategy;
    this.keepAliveStrategy = keepAliveStrategy;
    this.targetAuthStrategy = targetAuthStrategy;
    this.proxyAuthStrategy = proxyAuthStrategy;
    this.userTokenHandler = userTokenHandler;
}