|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.validation.routines.InetAddressValidator
public class InetAddressValidator
InetAddress validation and conversion routines (java.net.InetAddress).
This class provides methods to validate a candidate IP address.
This class is a Singleton; you can retrieve the instance via the getInstance() method.
| Constructor Summary | |
|---|---|
InetAddressValidator()
|
|
| Method Summary | |
|---|---|
static InetAddressValidator |
getInstance()
Returns the singleton instance of this validator. |
boolean |
isValid(String inetAddress)
Checks if the specified string is a valid IP address. |
boolean |
isValidInet4Address(String inet4Address)
Validates an IPv4 address. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InetAddressValidator()
| Method Detail |
|---|
public static InetAddressValidator getInstance()
public boolean isValid(String inetAddress)
inetAddress - the string to validate
public boolean isValidInet4Address(String inet4Address)
inet4Address - the IPv4 address to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||