|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--socks.Proxy | +--socks.Socks5Proxy
SOCKS5 Proxy.
Constructor Summary | |
Socks5Proxy(java.net.InetAddress proxyIP,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(Proxy p,
java.net.InetAddress proxyIP,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(Proxy p,
java.lang.String proxyHost,
int proxyPort)
Creates SOCKS5 proxy. |
|
Socks5Proxy(java.lang.String proxyHost,
int proxyPort)
Creates SOCKS5 proxy. |
Method Summary | |
java.lang.Object |
clone()
Creates a clone of this Proxy. |
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. |
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 |
public Socks5Proxy(Proxy p, java.lang.String proxyHost, int proxyPort) throws java.net.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.public Socks5Proxy(java.lang.String proxyHost, int proxyPort) throws java.net.UnknownHostException
proxyHost
- Host on which a Proxy server runs.proxyPort
- Port on which a Proxy server listens for connections.public Socks5Proxy(Proxy p, java.net.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(java.net.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 AuthenticationAuthentication
public Authentication getAuthenticationMethod(int methodId)
methodId
- Authentication method id.public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |