Class PortValidator
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.config.validators.RangedIntegerValidator
-
- net.adoptopenjdk.icedteaweb.config.validators.PortValidator
-
- All Implemented Interfaces:
ValueValidator
public class PortValidator extends RangedIntegerValidator
Checks that the value is a valid port.
-
-
Field Summary
Fields Modifier and Type Field Description private static intHIGHEST_PORTprivate static intLOWEST_PORT
-
Constructor Summary
Constructors Constructor Description PortValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(java.lang.Object value)This method checks if the given object is a valid value for this specificValueValidator.-
Methods inherited from class net.adoptopenjdk.icedteaweb.config.validators.RangedIntegerValidator
getPossibleValues
-
-
-
-
Field Detail
-
HIGHEST_PORT
private static final int HIGHEST_PORT
- See Also:
- Constant Field Values
-
LOWEST_PORT
private static final int LOWEST_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate(java.lang.Object value) throws java.lang.IllegalArgumentExceptionDescription copied from interface:ValueValidatorThis method checks if the given object is a valid value for this specificValueValidator. Any arbitrary operation can be performed to ensure that the value is valid.- Specified by:
validatein interfaceValueValidator- Overrides:
validatein classRangedIntegerValidator- Parameters:
value- The object to validate- Throws:
java.lang.IllegalArgumentException- if the value is invalid
-
-