|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eways.batchext.Socks
public class Socks
This implementation is for the SOCKS (V4, V4A & V5) protocol.
Field Summary |
---|
Constructor Summary | |
---|---|
Socks(java.lang.String socksHost,
int socksPort,
java.lang.String socksUser,
java.lang.String socksPassword)
Creates the SOCKS proxy server if the SOCKS version is unknown. |
|
Socks(java.lang.String socksHost,
int socksPort,
java.lang.String socksUser,
java.lang.String socksPassword,
int socksVersion)
Creates the SOCKS proxy server. |
|
Socks(java.lang.String socksHost,
java.lang.String socksUser,
java.lang.String socksPassword)
Creates the SOCKS proxy server using the default SOCKS port (1080). |
|
Socks(java.lang.String socksHost,
java.lang.String socksUser,
java.lang.String socksPassword,
int socksVersion)
Creates the SOCKS proxy server using the default SOCKS port (1080). |
Method Summary | |
---|---|
boolean |
equals(Socks socks)
Indicates whether some other SOCKS object is "equal to" the current one. |
java.lang.String |
getSocksHost()
Gets the host name on which the SOCKS server is running. |
java.lang.String |
getSocksPassword()
Gets the encrypted password for the SOCKS user. |
int |
getSocksPort()
Gets the port on which SOCKS server is running. |
java.lang.String |
getSocksUser()
Gets the SOCKS user name. |
int |
getSocksVersion()
Gets the SOCKS version; 4, 5 or -1 is returned. |
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
void |
setSocksVersion(int newSocksVersion)
Sets the SOCKS version; 4, 5 or -1 is used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Socks(java.lang.String socksHost, int socksPort, java.lang.String socksUser, java.lang.String socksPassword)
socksHost
- The host name of the SOCKS server.socksPort
- The port number of the SOCKS serversocksUser
- The user name.socksPassword
- The encrypted password for that user.public Socks(java.lang.String socksHost, int socksPort, java.lang.String socksUser, java.lang.String socksPassword, int socksVersion)
socksHost
- The host name of the SOCKS server.socksPort
- The port number of the SOCKS serversocksUser
- The user name.socksPassword
- The encrypted password for that user.socksVersion
- The SOCKS version: 4, 5 or -1 (-1 means an unknown version, and
the e*Way tries to find it according to the response of the SOCKS server).public Socks(java.lang.String socksHost, java.lang.String socksUser, java.lang.String socksPassword)
socksHost
- The host name of the SOCKS server.socksUser
- The user name.socksPassword
- The encrypted password for that user.public Socks(java.lang.String socksHost, java.lang.String socksUser, java.lang.String socksPassword, int socksVersion)
socksHost
- The host name of the SOCKS server.socksUser
- The user name.socksPassword
- The encrypted password for that user.socksVersion
- The SOCKS version: 4, 5 or -1 (-1 means an unknown version, and
the e*Way tries to find it according to the response of the SOCKS server).Method Detail |
---|
public java.lang.String getSocksHost()
public java.lang.String getSocksPassword()
public int getSocksPort()
public java.lang.String getSocksUser()
public int getSocksVersion()
public void setSocksVersion(int newSocksVersion) throws SocksException
newSocksVersion
- The SOCKS version, that is, 4, 5 or -1 (-1 means an unknown version).
SocksException
public boolean equals(Socks socks)
socks
- A SOCKS object.
public static void main(java.lang.String[] args)
args
- Command-line parameters.
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |