| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private int | |
| private String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(URL
annotation instance for a given constraint declaration url)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(CharSequence
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated constraintValidatorContext)Implements jakarta. |
| private RegexpURLValidator. |
| host | back to summary |
|---|---|
| private String host | |
| port | back to summary |
|---|---|
| private int port | |
| protocol | back to summary |
|---|---|
| private String protocol | |
| URL_REGEX | back to summary |
|---|---|
| private static final Pattern URL_REGEX | |
| RegexpURLValidator | back to summary |
|---|---|
| public RegexpURLValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(URL url) Overrides default jakarta. Doc from jakarta. Initializes the validator in preparation for
This method is guaranteed to be called before any use of this instance for validation. The default implementation is a no-op. | |
| isValid | back to summary |
|---|---|
| public boolean isValid(CharSequence value, ConstraintValidatorContext constraintValidatorContext) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |
| parseUrl | back to summary |
|---|---|
| private RegexpURLValidator. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| host | back to summary |
|---|---|
| private final String host | |
| port | back to summary |
|---|---|
| private final int port | |
| protocol | back to summary |
|---|---|
| private final String protocol | |
| ValueHolder | back to summary |
|---|---|
| public ValueHolder(String protocol, String host, int port) | |
| getHost | back to summary |
|---|---|
| public String getHost() | |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() | |