Package com.eatthepath.pushy.apns.proxy
Class Socks5ProxyHandlerFactory
java.lang.Object
com.eatthepath.pushy.apns.proxy.Socks5ProxyHandlerFactory
- All Implemented Interfaces:
ProxyHandlerFactory
A concrete
ProxyHandlerFactory
implementation that creates Socks5ProxyHandler
instances.- Since:
- 0.6
- Author:
- Jon Chambers
-
Constructor Summary
ConstructorDescriptionSocks5ProxyHandlerFactory
(SocketAddress proxyAddress) Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given address and that will not perform authentication.Socks5ProxyHandlerFactory
(SocketAddress proxyAddress, String username, String password) Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given address and that will authenticate with the given username and password. -
Method Summary
Modifier and TypeMethodDescriptionConstructs a new proxy handler.
-
Constructor Details
-
Socks5ProxyHandlerFactory
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given address and that will not perform authentication.- Parameters:
proxyAddress
- the address of the SOCKS5 proxy server- Since:
- 0.6
-
Socks5ProxyHandlerFactory
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given address and that will authenticate with the given username and password.- Parameters:
proxyAddress
- the address of the SOCKS5 proxy serverusername
- the username to use when connecting to the given proxy serverpassword
- the password to use when connecting to the given proxy server- Since:
- 0.6
-
-
Method Details
-
createProxyHandler
Description copied from interface:ProxyHandlerFactory
Constructs a new proxy handler.- Specified by:
createProxyHandler
in interfaceProxyHandlerFactory
- Returns:
- a new proxy handler; must not be
null
-