net.sourceforge.apphere.proxy.rabbit.filter
Class CookieFilter

java.lang.Object
  extended bynet.sourceforge.apphere.proxy.rabbit.filter.CookieFilter

public class CookieFilter
extends java.lang.Object

Author:
Dewi To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
CookieFilter()
           
 
Method Summary
static HTTPHeader doHTTPInFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
          remove and store cookies coming from the response This is called when REQUEST GOES TO WEBSERVER
static HTTPHeader doHTTPOutFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
          Insert the stored cookies back into the request This is called when REPONSE COMES FROM WEBSERVER
static void setup(java.util.Properties properties)
          Setup this class with the given properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieFilter

public CookieFilter()
Method Detail

doHTTPInFiltering

public static HTTPHeader doHTTPInFiltering(java.net.Socket socket,
                                           HTTPHeader header,
                                           Connection con)
remove and store cookies coming from the response This is called when REQUEST GOES TO WEBSERVER

Parameters:
socket - the Socket that made the request.
header - the actual request made.
con - the Connection handling the request.
Returns:
null if everything is fine or a HTTPHeader describing the error (like a 403).

doHTTPOutFiltering

public static HTTPHeader doHTTPOutFiltering(java.net.Socket socket,
                                            HTTPHeader header,
                                            Connection con)
Insert the stored cookies back into the request This is called when REPONSE COMES FROM WEBSERVER

Parameters:
socket - the Socket that made the request.
header - the actual request made.
con - the Connection handling the request.
Returns:
null if everything is fine or a HTTPHeader describing the error (like a 403).

setup

public static void setup(java.util.Properties properties)
Setup this class with the given properties.

Parameters:
properties - the new configuration of this class.