public class Socks5ProxyHandler extends AbstractSocksProxyHandler
| Constructor and Description |
|---|
Socks5ProxyHandler(InetSocketAddress address)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command and the
default (10 seconds) connection timeout. |
Socks5ProxyHandler(InetSocketAddress address,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command, the
default (10 seconds) connection timeout and configuration. |
Socks5ProxyHandler(InetSocketAddress address,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command, the
default (10 seconds) connection timeout, configuration and factory. |
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command and the default (10 seconds) connection timeout.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, the default (10 seconds) connection timeout and
configuration.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, the default (10 seconds) connection timeout,
configuration and factory.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
String username,
String password)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, user's name/password and the default (10 seconds)
connection timeout.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
String username,
String password,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, user's name/password, the default (10 seconds)
connection timeout and configuration.
|
Socks5ProxyHandler(InetSocketAddress address,
Socks5Command command,
String username,
String password,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, SOCKS5 command, user's name/password, the default (10 seconds)
connection timeout, configuration and factory.
|
Socks5ProxyHandler(InetSocketAddress address,
String username,
String password)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command, user's
name/password and the default (10 seconds) connection timeout. |
Socks5ProxyHandler(InetSocketAddress address,
String username,
String password,
ISessionConfig config)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command, user's
name/password, the default (10 seconds) connection timeout and configuration. |
Socks5ProxyHandler(InetSocketAddress address,
String username,
String password,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a SOCKS5 proxy connection handler with the specified destination
address, the default (
CONNECT) command, user's
name/password, the default (10 seconds) connection timeout, configuration and
factory. |
| Modifier and Type | Method and Description |
|---|---|
Socks5ProxyHandler |
connectionTimeout(long connectionTimeout)
Configures the proxy connection timeout.
|
addReplyListener, available, available, event, getAddress, getReplies, handleReady, read, read, readgetFactory, timergetSession, setSessionevent, exception, getConfig, getName, incident, timerpublic Socks5ProxyHandler(InetSocketAddress address)
CONNECT) command and the
default (10 seconds) connection timeout.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, ISessionConfig config)
CONNECT) command, the
default (10 seconds) connection timeout and configuration.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedconfig - the session configuration object, or null to use the
default configurationIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, ISessionConfig config, ISessionStructureFactory factory)
CONNECT) command, the
default (10 seconds) connection timeout, configuration and factory.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedconfig - the session configuration object, or null to use the
default configurationfactory - the factory that will be used to configure the internal
structure of the associated session, or null to use
the default factoryIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, String username, String password)
CONNECT) command, user's
name/password and the default (10 seconds) connection timeout.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, String username, String password, ISessionConfig config)
CONNECT) command, user's
name/password, the default (10 seconds) connection timeout and configuration.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordconfig - the session configuration object, or null to use the
default configurationIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, String username, String password, ISessionConfig config, ISessionStructureFactory factory)
CONNECT) command, user's
name/password, the default (10 seconds) connection timeout, configuration and
factory.
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordconfig - the session configuration object, or null to use the
default configurationfactory - the factory that will be used to configure the internal
structure of the associated session, or null to use
the default factoryIllegalArgumentException - if the address is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command, ISessionConfig config)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandconfig - the session configuration object, or null to use the
default configurationIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command, ISessionConfig config, ISessionStructureFactory factory)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandconfig - the session configuration object, or null to use the
default configurationfactory - the factory that will be used to configure the internal
structure of the associated session, or null to use
the default factoryIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command, String username, String password)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command, String username, String password, ISessionConfig config)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordconfig - the session configuration object, or null to use the
default configurationIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler(InetSocketAddress address, Socks5Command command, String username, String password, ISessionConfig config, ISessionStructureFactory factory)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
address - the destination address to the host to which the connection
should be proxiedcommand - the SCOCS5 commandusername - the user's name, or null for an empty namepassword - the user's password, or null for an empty passwordconfig - the session configuration object, or null to use the
default configurationfactory - the factory that will be used to configure the internal
structure of the associated session, or null to use
the default factoryIllegalArgumentException - if the address or the command is nullpublic Socks5ProxyHandler connectionTimeout(long connectionTimeout)
NOTE: The connection timeout will have no effect if the associated session does not support a session timer.
connectionTimeout in class AbstractProxyHandlerconnectionTimeout - the proxy connection timeout in milliseconds, or 0
to wait an infinite amount of time for establishing
the HTTP tunnelIllegalArgumentException - if the connection timeout is negativeCopyright © 2017–2022 SNF4J.ORG. All rights reserved.