|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.net.AbstractIPAddressPattern
org.jppf.net.IPv6AddressPattern
public class IPv6AddressPattern
Represents a pattern used for IPv6 addresses inclusion and exclusion lists.
A pattern represents a single value or a range of values for each component of an IPv6 address.
Examples:
Syntax rules:
1. An empty component is considered as a 0-FFFF range. Examples:
2. Ranges with missing bounds but still including the "-" sign are interpreted as a range with the lower bound equal to zero for a missing lower bound, and an upper bound equal to 0xFFFF if the uper bound is missing. Examples:
3. Valid values for range bounds and single values are positive integers in the range 0 ... 0xFFFF. A pattern containing any invalid value will be ignored.
4. A pattern describing more than 8 components or containing characters other than hexadecimal digits, '-', ':' or spaces will be ignored.
| Constructor Summary | |
|---|---|
IPv6AddressPattern(String source)
Initialize this object with the specified string pattern. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Main method. |
boolean |
matches(InetAddress ip)
Determine whether the specified IP address matches this pattern. |
String |
toString()
|
| Methods inherited from class org.jppf.net.AbstractIPAddressPattern |
|---|
convertSource, matches, postProcess, preProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IPv6AddressPattern(String source)
throws IllegalArgumentException
source - the source pattern as a string.
IllegalArgumentException - if the pattern is null or invalid.| Method Detail |
|---|
public boolean matches(InetAddress ip)
matches in class AbstractIPAddressPatternip - the ip to match as a string.
public String toString()
toString in class AbstractIPAddressPatternpublic static void main(String[] args)
args - not used.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||