cgl.narada.transport.proxy
Class ProxyTunnel
java.lang.Object
cgl.narada.transport.proxy.ProxyTunnel
public class ProxyTunnel
- extends Object
This class implements functionalities to tunnel through proxy.
If required, it also does authentication according to proxy specified
authentication method. Proxy on Windows uses username and password in
the system. In Unix/Linux, proxy can have its own username/password
registry.
Originally written by John Yin; refactoring by Hongbin Liu
- Version:
- 1.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyTunnel
public ProxyTunnel(ProxyInfo pi)
doProxyConnect
public Socket doProxyConnect(String host,
int port)
throws AccessDeniedException,
IOException
- Throws:
AccessDeniedException
IOException
doProxyConnect
public Socket doProxyConnect(String host,
int port,
String authorization)
throws AccessDeniedException,
IOException
- ---------------------------------------------------------------------
- Parameters:
authorization - An additional authorization header field in the
connection request.
- Throws:
AccessDeniedException
IOException
For comments and suggestions please send
e-mail to
The NaradaBrokering Project