public class HttpProxyHandlerFactory extends Object implements ProxyHandlerFactory
ProxyHandlerFactory implementation that creates HttpProxyHandler instances.| Constructor and Description |
|---|
HttpProxyHandlerFactory(SocketAddress proxyAddress)
Creates a new proxy handler factory that will create HTTP proxy handlers that use the proxy at the given
address and that will not perform authentication.
|
HttpProxyHandlerFactory(SocketAddress proxyAddress,
String username,
String password)
Creates a new proxy handler factory that will create HTTP proxy handlers that use the proxy at the given
address and that will authenticate with the given username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ProxyHandler |
createProxyHandler()
Constructs a new proxy handler.
|
public HttpProxyHandlerFactory(SocketAddress proxyAddress)
proxyAddress - the address of the HTTP proxy serverpublic HttpProxyHandlerFactory(SocketAddress proxyAddress, String username, String password)
proxyAddress - the address of the HTTP proxy serverusername - the username to use when connecting to the given proxy serverpassword - the password to use when connecting to the given proxy serverpublic ProxyHandler createProxyHandler()
ProxyHandlerFactorycreateProxyHandler in interface ProxyHandlerFactorynullCopyright © 2013–2018 Turo. All rights reserved.