Class InetAddressValidator
- java.lang.Object
-
- org.apache.bval.extras.constraints.net.InetAddressValidator
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<InetAddress,CharSequence>
public class InetAddressValidator extends Object implements jakarta.validation.ConstraintValidator<InetAddress,CharSequence>
InetAddress validation and conversion routines (
java.net.InetAddress
).This class provides methods to validate a candidate IP address.
-
-
Constructor Summary
Constructors Constructor Description InetAddressValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(InetAddress parameters)
boolean
isValid(CharSequence value, jakarta.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
isValid
public boolean isValid(CharSequence value, jakarta.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<InetAddress,CharSequence>
-
initialize
public void initialize(InetAddress parameters)
- Specified by:
initialize
in interfacejakarta.validation.ConstraintValidator<InetAddress,CharSequence>
-
-