cgl.narada.transport.proxy
Class ProxyTunnel

java.lang.Object
  extended by 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

Constructor Summary
ProxyTunnel(ProxyInfo pi)
           
 
Method Summary
 Socket doProxyConnect(String host, int port)
           
 Socket doProxyConnect(String host, int port, String authorization)
          ---------------------------------------------------------------------
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyTunnel

public ProxyTunnel(ProxyInfo pi)
Method Detail

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