public final class HostValidator extends Object implements javax.validation.ConstraintValidator<Host,String>
In particular, it checks that the port is in range [1-65535] and that hostname and port number are delimited with a semi-column. There is no check on hostname as it can include special characters.
Constructor and Description |
---|
HostValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(String hostnamePort,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
Copyright © 2023. All rights reserved.