com.caucho.server.security
Class ForbidHost

java.lang.Object
  extended by com.caucho.server.security.ForbidHost

public class ForbidHost
extends java.lang.Object

A class to forbid hosts by IP.


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
ForbidHost()
           
 
Method Summary
 void addForbidIP(java.lang.String addrName)
          Adds a forbidden host.
 void addForbidNet(java.lang.String netmask)
          Adds a forbidden net.
 void init()
          Initialize the forbidden host.
 boolean isForbidden(java.net.InetAddress addr)
          Returns true if the host is forbidden.
 void removeForbidIP(java.lang.String addrName)
          Removes a forbidden host.
 void removeForbidNet(java.lang.String netmask)
          Removes a forbidden net.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

ForbidHost

public ForbidHost()
Method Detail

addForbidIP

public void addForbidIP(java.lang.String addrName)
Adds a forbidden host.


removeForbidIP

public void removeForbidIP(java.lang.String addrName)
Removes a forbidden host.


addForbidNet

public void addForbidNet(java.lang.String netmask)
Adds a forbidden net.


removeForbidNet

public void removeForbidNet(java.lang.String netmask)
Removes a forbidden net.


init

@PostConstruct
public void init()
Initialize the forbidden host.


isForbidden

public boolean isForbidden(java.net.InetAddress addr)
Returns true if the host is forbidden.