anon.proxy
Class JonDoFoxHeader

java.lang.Object
  extended by anon.proxy.AbstractHTTPConnectionListener
      extended by anon.proxy.JonDoFoxHeader

public final class JonDoFoxHeader
extends AbstractHTTPConnectionListener


Field Summary
(package private) static java.lang.String HTTP_ENCODING_DEFLATE
           
(package private) static java.lang.String HTTP_ENCODING_GZIP
           
static java.lang.String JONDOFOX_CHARSET
           
static java.lang.String JONDOFOX_CONTENT_TYPES
           
static java.lang.String JONDOFOX_ENCODING
           
static java.lang.String JONDOFOX_LANGUAGE
           
static java.lang.String JONDOFOX_LANGUAGE_NEW
           
static java.lang.String USER_AGENT_JONDOFOX
           
static java.lang.String USER_AGENT_JONDOFOX_NEW
           
static java.lang.String USER_AGENT_TORBUTTON
           
static java.lang.String USER_AGENT_TORBUTTON_OLD
           
 
Constructor Summary
JonDoFoxHeader(int a_priority)
           
 
Method Summary
private static boolean detectInternaEncodingRequired(java.lang.String[] clientSupportedEncodings)
           
 void downstreamContentBytesReceived(HTTPConnectionEvent event)
           
 void handleRequest(HTTPConnectionEvent event)
           
 void requestHeadersReceived(HTTPConnectionEvent event)
           
 void responseHeadersReceived(HTTPConnectionEvent event)
           
 void upstreamContentBytesReceived(HTTPConnectionEvent event)
           
 
Methods inherited from class anon.proxy.AbstractHTTPConnectionListener
equals, getPriority, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_ENCODING_GZIP

static final java.lang.String HTTP_ENCODING_GZIP
See Also:
Constant Field Values

HTTP_ENCODING_DEFLATE

static final java.lang.String HTTP_ENCODING_DEFLATE
See Also:
Constant Field Values

USER_AGENT_JONDOFOX

public static final java.lang.String USER_AGENT_JONDOFOX
See Also:
Constant Field Values

USER_AGENT_JONDOFOX_NEW

public static final java.lang.String USER_AGENT_JONDOFOX_NEW
See Also:
Constant Field Values

USER_AGENT_TORBUTTON

public static final java.lang.String USER_AGENT_TORBUTTON
See Also:
Constant Field Values

USER_AGENT_TORBUTTON_OLD

public static final java.lang.String USER_AGENT_TORBUTTON_OLD
See Also:
Constant Field Values

JONDOFOX_LANGUAGE

public static final java.lang.String JONDOFOX_LANGUAGE
See Also:
Constant Field Values

JONDOFOX_LANGUAGE_NEW

public static final java.lang.String JONDOFOX_LANGUAGE_NEW
See Also:
Constant Field Values

JONDOFOX_CHARSET

public static final java.lang.String JONDOFOX_CHARSET
See Also:
Constant Field Values

JONDOFOX_CONTENT_TYPES

public static final java.lang.String JONDOFOX_CONTENT_TYPES
See Also:
Constant Field Values

JONDOFOX_ENCODING

public static final java.lang.String JONDOFOX_ENCODING
See Also:
Constant Field Values
Constructor Detail

JonDoFoxHeader

public JonDoFoxHeader(int a_priority)
Method Detail

handleRequest

public void handleRequest(HTTPConnectionEvent event)

downstreamContentBytesReceived

public void downstreamContentBytesReceived(HTTPConnectionEvent event)
Specified by:
downstreamContentBytesReceived in class AbstractHTTPConnectionListener

requestHeadersReceived

public void requestHeadersReceived(HTTPConnectionEvent event)
Specified by:
requestHeadersReceived in class AbstractHTTPConnectionListener

responseHeadersReceived

public void responseHeadersReceived(HTTPConnectionEvent event)
Specified by:
responseHeadersReceived in class AbstractHTTPConnectionListener

detectInternaEncodingRequired

private static boolean detectInternaEncodingRequired(java.lang.String[] clientSupportedEncodings)

upstreamContentBytesReceived

public void upstreamContentBytesReceived(HTTPConnectionEvent event)
Specified by:
upstreamContentBytesReceived in class AbstractHTTPConnectionListener