socks
Class Socks4Proxy

java.lang.Object
  |
  +--socks.Proxy
        |
        +--socks.Socks4Proxy

public class Socks4Proxy
extends Proxy
implements java.lang.Cloneable

Proxy which describes SOCKS4 proxy.


Fields inherited from class socks.Proxy
SOCKS_ADDR_NOT_SUPPORTED, SOCKS_AUTH_FAILURE, SOCKS_AUTH_NOT_SUPPORTED, SOCKS_BADCONNECT, SOCKS_BADNETWORK, SOCKS_CMD_NOT_SUPPORTED, SOCKS_CONNECTION_REFUSED, SOCKS_DIRECT_FAILED, SOCKS_FAILURE, SOCKS_HOST_UNREACHABLE, SOCKS_JUST_ERROR, SOCKS_METHOD_NOTSUPPORTED, SOCKS_NO_PROXY, SOCKS_PROXY_IO_ERROR, SOCKS_PROXY_NO_CONNECT, SOCKS_SUCCESS, SOCKS_TTL_EXPIRE
 
Constructor Summary
Socks4Proxy(java.net.InetAddress proxyIP, int proxyPort, java.lang.String user)
          Creates the SOCKS4 proxy
Socks4Proxy(Proxy p, java.net.InetAddress proxyIP, int proxyPort, java.lang.String user)
          Creates the SOCKS4 proxy
Socks4Proxy(Proxy p, java.lang.String proxyHost, int proxyPort, java.lang.String user)
          Creates the SOCKS4 proxy
Socks4Proxy(java.lang.String proxyHost, int proxyPort, java.lang.String user)
          Creates the SOCKS4 proxy
 
Method Summary
 java.lang.Object clone()
          Creates a clone of this proxy.
 
Methods inherited from class socks.Proxy
addDirect, addDirect, addDirect, getChainProxy, getDefaultProxy, getDirect, getInetAddress, getPort, isDirect, isDirect, parseProxy, setChainProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDirect, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Socks4Proxy

public Socks4Proxy(Proxy p,
                   java.lang.String proxyHost,
                   int proxyPort,
                   java.lang.String user)
            throws java.net.UnknownHostException
Creates the SOCKS4 proxy
Parameters:
p - Proxy to use to connect to this proxy, allows proxy chaining.
proxyHost - Address of the proxy server.
proxyPort - Port of the proxy server
user - User name to use for identification purposes.
Throws:
java.net.UnknownHostException - If proxyHost can't be resolved.

Socks4Proxy

public Socks4Proxy(java.lang.String proxyHost,
                   int proxyPort,
                   java.lang.String user)
            throws java.net.UnknownHostException
Creates the SOCKS4 proxy
Parameters:
proxyHost - Address of the proxy server.
proxyPort - Port of the proxy server
user - User name to use for identification purposes.
Throws:
java.net.UnknownHostException - If proxyHost can't be resolved.

Socks4Proxy

public Socks4Proxy(Proxy p,
                   java.net.InetAddress proxyIP,
                   int proxyPort,
                   java.lang.String user)
Creates the SOCKS4 proxy
Parameters:
p - Proxy to use to connect to this proxy, allows proxy chaining.
proxyIP - Address of the proxy server.
proxyPort - Port of the proxy server
user - User name to use for identification purposes.

Socks4Proxy

public Socks4Proxy(java.net.InetAddress proxyIP,
                   int proxyPort,
                   java.lang.String user)
Creates the SOCKS4 proxy
Parameters:
proxyIP - Address of the proxy server.
proxyPort - Port of the proxy server
user - User name to use for identification purposes.
Method Detail

clone

public java.lang.Object clone()
Creates a clone of this proxy. Changes made to the clone should not affect this object.