Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.net
Class WebProxyTunnelSocket  view WebProxyTunnelSocket download WebProxyTunnelSocket.java

java.lang.Object
  extended byjava.net.Socket
      extended bymindbright.net.WebProxyTunnelSocket

public class WebProxyTunnelSocket
extends java.net.Socket

Socket that implements web proxy tunnelling (using CONNECT) (described in an Internet Draft (expired Feb. 1999) titled 'Tunneling TCP based protocols through Web proxy servers' by: Ari Luotonen) proxy-authentication is described in RFC2616 and RFC2617


Field Summary
private  java.lang.String proxyHost
           
private  int proxyPort
           
(package private)  HttpHeader responseHeader
           
(package private)  java.lang.String serverDesc
           
private  java.lang.String targetHost
           
private  int targetPort
           
 
Fields inherited from class java.net.Socket
 
Constructor Summary
private WebProxyTunnelSocket(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort)
           
 
Method Summary
static WebProxyTunnelSocket getProxy(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort, java.lang.String protoStr, ProxyAuthenticator authenticator, java.lang.String userAgent)
           
 HttpHeader getResponseHeader()
           
 java.lang.String getServerDesc()
           
 java.lang.String toString()
          Converts this Socket to a String.
 
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxyHost

private java.lang.String proxyHost

proxyPort

private int proxyPort

targetHost

private java.lang.String targetHost

targetPort

private int targetPort

responseHeader

HttpHeader responseHeader

serverDesc

java.lang.String serverDesc
Constructor Detail

WebProxyTunnelSocket

private WebProxyTunnelSocket(java.lang.String host,
                             int port,
                             java.lang.String proxyHost,
                             int proxyPort)
                      throws java.io.IOException,
                             java.net.UnknownHostException
Method Detail

getResponseHeader

public HttpHeader getResponseHeader()

getServerDesc

public java.lang.String getServerDesc()

getProxy

public static WebProxyTunnelSocket getProxy(java.lang.String host,
                                            int port,
                                            java.lang.String proxyHost,
                                            int proxyPort,
                                            java.lang.String protoStr,
                                            ProxyAuthenticator authenticator,
                                            java.lang.String userAgent)
                                     throws java.io.IOException,
                                            java.net.UnknownHostException

toString

public java.lang.String toString()
Description copied from class: java.net.Socket
Converts this Socket to a String.