org.moock.unity.core
Class Bouncer

java.lang.Object
  |
  +--org.moock.unity.core.Bouncer

public class Bouncer
extends java.lang.Object

Author:
Derek Used to ban/uban clients from the server.

Method Summary
static boolean ban(java.lang.String ip)
          Bans the given ip.
static java.lang.String[] getBannedList()
          Returns a String [] of the banned IP's
static boolean isBanned(java.lang.String ip)
          Returns true if the given ip is on the banned list.
static void unban(java.lang.String ip)
          Unbans the given ip.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBannedList

public static java.lang.String[] getBannedList()
Returns a String [] of the banned IP's

ban

public static boolean ban(java.lang.String ip)
Bans the given ip. Currently does not validate the ip syntax.

unban

public static void unban(java.lang.String ip)
Unbans the given ip.

isBanned

public static boolean isBanned(java.lang.String ip)
Returns true if the given ip is on the banned list.