Class ProxySocketFactory
java.lang.Object
javax.net.SocketFactory
com.hierynomus.protocol.commons.socket.ProxySocketFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intprivate static final org.slf4j.Loggerprivate Proxy -
Constructor Summary
ConstructorsConstructorDescriptionProxySocketFactory(int connectTimeout) ProxySocketFactory(String proxyAddress, int proxyPort) ProxySocketFactory(Proxy proxy) ProxySocketFactory(Proxy proxy, int connectTimeout) -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String address, int port) createSocket(String address, int port, InetAddress localAddress, int localPort) createSocket(InetAddress address, int port) createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) private SocketcreateSocket(InetSocketAddress address, InetSocketAddress bindAddress) private static ProxygetHttpProxy(String proxyAddress, int proxyPort) Methods inherited from class SocketFactory
getDefault
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT- See Also:
-
proxy
-
connectTimeout
private int connectTimeout
-
-
Constructor Details
-
ProxySocketFactory
public ProxySocketFactory() -
ProxySocketFactory
-
ProxySocketFactory
-
ProxySocketFactory
public ProxySocketFactory(int connectTimeout) -
ProxySocketFactory
-
-
Method Details
-
createSocket
- Overrides:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
private Socket createSocket(InetSocketAddress address, InetSocketAddress bindAddress) throws IOException - Throws:
IOException
-
getHttpProxy
-