anon.proxy
Class HTTPProxyCallback.HTTPConnectionHeader

java.lang.Object
  extended by anon.proxy.HTTPProxyCallback.HTTPConnectionHeader
Enclosing class:
HTTPProxyCallback

public final class HTTPProxyCallback.HTTPConnectionHeader
extends java.lang.Object


Field Summary
private  java.util.Vector reqHeaderOrder
           
private  java.util.Hashtable reqHeaders
           
private  boolean requestFinished
           
private  java.util.Vector resHeaderOrder
           
private  java.util.Hashtable resHeaders
           
private  boolean responseExpected
           
private  boolean responseFinished
           
 
Constructor Summary
HTTPProxyCallback.HTTPConnectionHeader()
           
 
Method Summary
private  void clearHeader(java.util.Hashtable headerMap, java.util.Vector headerOrder)
           
protected  void clearRequest()
           
protected  void clearResponse()
           
private  byte[] dumpHeaders(java.util.Hashtable headerMap, java.util.Vector headerOrder)
           
private  byte[] dumpRequestHeaders()
           
private  byte[] dumpResponseHeaders()
           
private  java.lang.String[] getHeader(java.util.Hashtable headerMap, java.lang.String header)
           
 java.lang.String[] getRequestHeader(java.lang.String header)
           
 java.lang.String getRequestLine()
           
 java.lang.String[] getResponseHeader(java.lang.String header)
           
 java.lang.String getResponseLine()
           
private  java.lang.String getStartLine(java.util.Hashtable headerMap)
           
private  boolean isRequestFinished()
           
private  boolean isResponseExpected()
           
 boolean isResponseFinished()
           
private  java.lang.String[] removeHeader(java.util.Hashtable headerMap, java.util.Vector headerOrder, java.lang.String header)
           
 java.lang.String[] removeRequestHeader(java.lang.String header)
           
 java.lang.String[] removeResponseHeader(java.lang.String header)
           
private  void replaceHeader(java.util.Hashtable headerMap, java.util.Vector headerOrder, java.lang.String header, java.lang.String value)
           
 void replaceRequestHeader(java.lang.String header, java.lang.String value)
           
 void replaceResponseHeader(java.lang.String header, java.lang.String value)
           
 void replaceResponseLine(java.lang.String a_newResponseLine)
           
private  void setHeader(java.util.Hashtable headerMap, java.util.Vector headerOrder, java.lang.String header, java.lang.String value)
           
 void setRequestFinished(boolean finished)
           
protected  void setRequestHeader(java.lang.String header, java.lang.String value)
           
private  void setResponseExpected(boolean responseExpected)
           
private  void setResponseFinished(boolean responseFinished)
           
protected  void setResponseHeader(java.lang.String header, java.lang.String value)
           
private  java.lang.String[] valuesToArray(java.util.Vector valueContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reqHeaders

private java.util.Hashtable reqHeaders

resHeaders

private java.util.Hashtable resHeaders

reqHeaderOrder

private java.util.Vector reqHeaderOrder

resHeaderOrder

private java.util.Vector resHeaderOrder

requestFinished

private boolean requestFinished

responseFinished

private boolean responseFinished

responseExpected

private boolean responseExpected
Constructor Detail

HTTPProxyCallback.HTTPConnectionHeader

public HTTPProxyCallback.HTTPConnectionHeader()
Method Detail

isResponseExpected

private boolean isResponseExpected()

setResponseExpected

private void setResponseExpected(boolean responseExpected)

isResponseFinished

public boolean isResponseFinished()

setResponseFinished

private void setResponseFinished(boolean responseFinished)

isRequestFinished

private boolean isRequestFinished()

setRequestFinished

public void setRequestFinished(boolean finished)

setRequestHeader

protected void setRequestHeader(java.lang.String header,
                                java.lang.String value)

setResponseHeader

protected void setResponseHeader(java.lang.String header,
                                 java.lang.String value)

replaceRequestHeader

public void replaceRequestHeader(java.lang.String header,
                                 java.lang.String value)

replaceResponseHeader

public void replaceResponseHeader(java.lang.String header,
                                  java.lang.String value)

getRequestLine

public java.lang.String getRequestLine()

getResponseLine

public java.lang.String getResponseLine()

replaceResponseLine

public void replaceResponseLine(java.lang.String a_newResponseLine)

getRequestHeader

public java.lang.String[] getRequestHeader(java.lang.String header)

getResponseHeader

public java.lang.String[] getResponseHeader(java.lang.String header)

removeRequestHeader

public java.lang.String[] removeRequestHeader(java.lang.String header)

removeResponseHeader

public java.lang.String[] removeResponseHeader(java.lang.String header)

clearRequest

protected void clearRequest()

clearResponse

protected void clearResponse()

setHeader

private void setHeader(java.util.Hashtable headerMap,
                       java.util.Vector headerOrder,
                       java.lang.String header,
                       java.lang.String value)

replaceHeader

private void replaceHeader(java.util.Hashtable headerMap,
                           java.util.Vector headerOrder,
                           java.lang.String header,
                           java.lang.String value)

getHeader

private java.lang.String[] getHeader(java.util.Hashtable headerMap,
                                     java.lang.String header)

removeHeader

private java.lang.String[] removeHeader(java.util.Hashtable headerMap,
                                        java.util.Vector headerOrder,
                                        java.lang.String header)

clearHeader

private void clearHeader(java.util.Hashtable headerMap,
                         java.util.Vector headerOrder)

getStartLine

private java.lang.String getStartLine(java.util.Hashtable headerMap)

valuesToArray

private java.lang.String[] valuesToArray(java.util.Vector valueContainer)

dumpRequestHeaders

private byte[] dumpRequestHeaders()

dumpResponseHeaders

private byte[] dumpResponseHeaders()

dumpHeaders

private byte[] dumpHeaders(java.util.Hashtable headerMap,
                           java.util.Vector headerOrder)