|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.Banlist
public class Banlist
List of hosts banned from the server.
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 |
---|
public static Banlist getInstance()
public void ban(String host)
public void ban(String host, Date expiration)
public void unban(String host)
public boolean isBanned(String host)
public boolean isBanned(InetAddress address)
public Iterator<Banlist.Entry> getBanlist()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |