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()
ProxyHandlerFactory
createProxyHandler
in interface ProxyHandlerFactory
null
Copyright © 2013–2016 RelayRides. All rights reserved.