|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.net.AbstractIPAddressPattern
public abstract class AbstractIPAddressPattern
Represents a pattern used for IP addresses inclusion or exclusion lists.
A pattern represents a single value or a range of values for each component of an IP address.
| Constructor Summary | |
|---|---|
AbstractIPAddressPattern(String source,
org.jppf.net.PatternConfiguration config)
Initialize this object with the specified string pattern. |
|
| Method Summary | |
|---|---|
protected void |
convertSource(String source)
Convert the specified source into an IP pattern. |
boolean |
matches(InetAddress ip)
Determine whether the specified IP address matches this pattern. |
boolean |
matches(int[] values)
Determine whether the specified IP address matches this pattern. |
protected String |
postProcess(String source)
Perform post-processing of the source string before applying common transformations. |
protected String |
preProcess(String source)
Perform pre-processing of the source string before applying common transformations. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIPAddressPattern(String source,
org.jppf.net.PatternConfiguration config)
throws IllegalArgumentException
source - the source pattern as a string.config - the configuration used for this pattern.
IllegalArgumentException - if the pattern is null or invalid.| Method Detail |
|---|
protected void convertSource(String source)
throws IllegalArgumentException
source - the source pattern as a string.
IllegalArgumentException - if the pattern is null or invalid.protected String preProcess(String source)
source - the pattern source to process.
protected String postProcess(String source)
source - the pattern source to process.
public boolean matches(InetAddress ip)
ip - the ip to match as a string.
public boolean matches(int[] values)
values - the ip address to match as a array of values representing its components.
public String toString()
toString in class Object
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||