rabbit.filter
Class AccessFilter

java.lang.Object
  extended byrabbit.filter.AccessFilter

public class AccessFilter
extends java.lang.Object

This is a class that filters access based on ip adress.


Method Summary
static boolean doIPFiltering(java.net.Socket s)
          Filter based on a socket.
static java.util.Vector getIPList()
          Get the list of ips allowed
static void loadAccess(java.io.Reader r)
          Loads in the accessess allowed from the given Reader
static void saveAccess(java.io.Reader r)
          Saves the accesslist from the given Reader.
static void setup(java.util.Properties properties)
          Setup this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doIPFiltering

public static boolean doIPFiltering(java.net.Socket s)
Filter based on a socket.

Parameters:
s - the Socket to check.
Returns:
true if the Socket should be allowed, false otherwise.

setup

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

Parameters:
properties - the Properties to get the settings from.

loadAccess

public static void loadAccess(java.io.Reader r)
                       throws java.io.IOException
Loads in the accessess allowed from the given Reader

Parameters:
r - the Reader were data is available
Throws:
java.io.IOException

saveAccess

public static void saveAccess(java.io.Reader r)
                       throws java.io.IOException
Saves the accesslist from the given Reader.

Parameters:
r - the Reader with the users.
Throws:
java.io.IOException

getIPList

public static java.util.Vector getIPList()
Get the list of ips allowed