Class PortValidator
java.lang.Object
net.adoptopenjdk.icedteaweb.config.validators.RangedIntegerValidator
net.adoptopenjdk.icedteaweb.config.validators.PortValidator
- All Implemented Interfaces:
ValueValidator
Checks that the value is a valid port.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method checks if the given object is a valid value for this specificValueValidator.Methods inherited from class RangedIntegerValidator
getPossibleValues
-
Field Details
-
HIGHEST_PORT
private static final int HIGHEST_PORT- See Also:
-
LOWEST_PORT
private static final int LOWEST_PORT- See Also:
-
-
Constructor Details
-
PortValidator
public PortValidator()
-
-
Method Details
-
validate
Description 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:
IllegalArgumentException- if the value is invalid
-