Package com.turo.pushy.apns.proxy
Class Socks4ProxyHandlerFactory
- java.lang.Object
-
- com.turo.pushy.apns.proxy.Socks4ProxyHandlerFactory
-
- All Implemented Interfaces:
ProxyHandlerFactory
public class Socks4ProxyHandlerFactory extends Object implements ProxyHandlerFactory
A concreteProxyHandlerFactoryimplementation that createsSocks4ProxyHandlerinstances.- Since:
- 0.6
- Author:
- Jon Chambers
-
-
Constructor Summary
Constructors Constructor Description Socks4ProxyHandlerFactory(SocketAddress proxyAddress)Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given address and that will not perform authentication.Socks4ProxyHandlerFactory(SocketAddress proxyAddress, String username)Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given address and that will authenticate with the given username and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.proxy.ProxyHandlercreateProxyHandler()Constructs a new proxy handler.
-
-
-
Constructor Detail
-
Socks4ProxyHandlerFactory
public Socks4ProxyHandlerFactory(SocketAddress proxyAddress)
Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given address and that will not perform authentication.- Parameters:
proxyAddress- the address of the SOCKS4 proxy server- Since:
- 0.6
-
Socks4ProxyHandlerFactory
public Socks4ProxyHandlerFactory(SocketAddress proxyAddress, String username)
Creates a new proxy handler factory that will create SOCKS4 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 SOCKS4 proxy serverusername- the username to use when connecting to the given proxy server- Since:
- 0.6
-
-
Method Detail
-
createProxyHandler
public io.netty.handler.proxy.ProxyHandler createProxyHandler()
Description copied from interface:ProxyHandlerFactoryConstructs a new proxy handler.- Specified by:
createProxyHandlerin interfaceProxyHandlerFactory- Returns:
- a new proxy handler; must not be
null
-
-