|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InetAddressFilter
Definition of a InetAddressFilter, which is used to accept/reject IP addresses.
This interface defines the method which all IP address filters
must implement. Basically, they need to be able to determine
whether a particular IP address is acceptable or not.
Typically, you will use the various static methods found in the
InetAddressFilters class which provides implementations for
most of the common types of filters.
InetAddressFilters| Method Summary | |
|---|---|
boolean |
accept(InetAddress ip)
Indicates whether the IP address be accepted
or rejected. |
| Method Detail |
|---|
boolean accept(InetAddress ip)
IP address be accepted
or rejected.
ip - The IP address to be checked, it should
never be null.
NullPointerException - If passed null (which is not permitted). However, it is not
required for this method to throw the exception.InetAddressFilters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||