public class ForbidHost
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
ForbidHost() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void addForbidIP(java.lang.String addrName)
public void removeForbidIP(java.lang.String addrName)
public void addForbidNet(java.lang.String netmask)
public void removeForbidNet(java.lang.String netmask)
@PostConstruct public void init()
public boolean isForbidden(java.net.InetAddress addr)