rabbit.filter
Class BlockFilter

java.lang.Object
  extended byrabbit.filter.BlockFilter

public class BlockFilter
extends java.lang.Object

This is a class that blocks access to certain part of the www.


Method Summary
static HTTPHeader doHTTPInFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
          test if a socket/header combination is valid or return a new HTTPHeader.
static HTTPHeader doHTTPOutFiltering(java.net.Socket socket, HTTPHeader header, Connection con)
          test if a socket/header combination is valid or return a new HTTPHeader.
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
 

Method Detail

doHTTPInFiltering

public static HTTPHeader doHTTPInFiltering(java.net.Socket socket,
                                           HTTPHeader header,
                                           Connection con)
test if a socket/header combination is valid or return a new HTTPHeader.

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)
test if a socket/header combination is valid or return a new HTTPHeader.

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.