net.jetrix
Class Banlist

java.lang.Object
  extended by net.jetrix.Banlist

public class Banlist
extends Object

List of hosts banned from the server.

Version:
$Revision: 426 $, $Date: 2004-10-03 19:32:15 +0200 (dim., 03 oct. 2004) $
Author:
Emmanuel Bourg

Nested Class Summary
 class Banlist.Entry
          A ban list entry.
 
Method Summary
 void ban(String host)
          Ban the specified host forever.
 void ban(String host, Date expiration)
          Ban the specified host till the expiration date.
 void clear()
          Remove all entries in the banlist.
 Iterator<Banlist.Entry> getBanlist()
           
static Banlist getInstance()
           
 boolean isBanned(InetAddress address)
           
 boolean isBanned(String host)
          Check if the specified host is currently banned.
 void unban(String host)
          Unban the specified host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Banlist getInstance()

ban

public void ban(String host)
Ban the specified host forever.


ban

public void ban(String host,
                Date expiration)
Ban the specified host till the expiration date.


unban

public void unban(String host)
Unban the specified host.


isBanned

public boolean isBanned(String host)
Check if the specified host is currently banned.


isBanned

public boolean isBanned(InetAddress address)

getBanlist

public Iterator<Banlist.Entry> getBanlist()

clear

public void clear()
Remove all entries in the banlist.



Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.