|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsocks.Proxy
socks.Socks5Proxy
public class Socks5Proxy
SOCKS5 Proxy.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Socks5Proxy(InetAddress proxyIP,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(Proxy p,
InetAddress proxyIP,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(Proxy p,
String proxyHost,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(String proxyHost,
int proxyPort)
Creates SOCKS5 proxy. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a clone of this Proxy. |
protected Proxy |
copy()
|
protected ProxyMessage |
formMessage(InputStream in)
|
protected ProxyMessage |
formMessage(int cmd,
InetAddress ip,
int port)
|
protected ProxyMessage |
formMessage(int cmd,
String host,
int port)
|
Authentication |
getAuthenticationMethod(int methodId)
Get authentication method, which corresponds to given method id |
boolean |
resolveAddrLocally()
Get current setting on how the addresses should be handled. |
boolean |
resolveAddrLocally(boolean doResolve)
Wether to resolve address locally or to let proxy do so. |
boolean |
setAuthenticationMethod(int methodId,
Authentication method)
Adds another authentication method. |
protected void |
startSession()
|
| Methods inherited from class socks.Proxy |
|---|
accept, addDirect, addDirect, addDirect, bind, bind, connect, connect, endSession, exchange, getChainProxy, getDefaultProxy, getDirect, getInetAddress, getPort, isDirect, isDirect, parseProxy, readMsg, sendMsg, setChainProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDefaultProxy, setDirect, toString, udpAssociate, udpAssociate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Socks5Proxy(Proxy p,
String proxyHost,
int proxyPort)
throws UnknownHostException
p - Proxy to use to connect to this proxy, allows proxy chaining.proxyHost - Host on which a Proxy server runs.proxyPort - Port on which a Proxy server listens for connections.
UnknownHostException - If proxyHost can't be resolved.
public Socks5Proxy(String proxyHost,
int proxyPort)
throws UnknownHostException
proxyHost - Host on which a Proxy server runs.proxyPort - Port on which a Proxy server listens for connections.
UnknownHostException - If proxyHost can't be resolved.
public Socks5Proxy(Proxy p,
InetAddress proxyIP,
int proxyPort)
p - Proxy to use to connect to this proxy, allows proxy chaining.proxyIP - Host on which a Proxy server runs.proxyPort - Port on which a Proxy server listens for connections.
public Socks5Proxy(InetAddress proxyIP,
int proxyPort)
proxyIP - Host on which a Proxy server runs.proxyPort - Port on which a Proxy server listens for connections.| Method Detail |
|---|
public boolean resolveAddrLocally(boolean doResolve)
SOCKS5 protocol allows to send host names rather then IPs in the requests, this option controls wether the hostnames should be send to the proxy server as names, or should they be resolved locally.
doResolve - Wether to perform resolution locally.
public boolean resolveAddrLocally()
resolveAddrLocally(boolean doResolve)
public boolean setAuthenticationMethod(int methodId,
Authentication method)
methodId - Authentication method id, see rfc1928method - Implementation of AuthenticationAuthenticationpublic Authentication getAuthenticationMethod(int methodId)
methodId - Authentication method id.
public Object clone()
clone in class Objectprotected Proxy copy()
copy in class Proxy
protected void startSession()
throws SocksException
startSession in class ProxySocksException
protected ProxyMessage formMessage(int cmd,
InetAddress ip,
int port)
formMessage in class Proxy
protected ProxyMessage formMessage(int cmd,
String host,
int port)
throws UnknownHostException
formMessage in class ProxyUnknownHostException
protected ProxyMessage formMessage(InputStream in)
throws SocksException,
IOException
formMessage in class ProxySocksException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||