|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthelma.util.InetAddressFilter
public class InetAddressFilter
A class for paranoid servers to filter IP addresses.
| Constructor Summary | |
|---|---|
InetAddressFilter()
Creates a new InetAddressFilter object. |
|
| Method Summary | |
|---|---|
void |
addAddress(java.lang.String address)
Addes an address template to the address filter. |
boolean |
matches(java.net.InetAddress address)
Check if the given address matches any of our patterns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InetAddressFilter()
| Method Detail |
|---|
public void addAddress(java.lang.String address)
throws java.io.IOException
address - The string representation of the IP address, either version 4 or 6.
java.io.IOException - if the parameter does not represent a valid IP addresspublic boolean matches(java.net.InetAddress address)
address - the ip address to match
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||