public class URLValidator extends Object implements FieldValidator
URLValidator class validates a URL string.| Constructor and Description |
|---|
URLValidator()
Creates a URLValidator that only accepts the protocols configured within the JVM instance.
|
URLValidator(boolean allowAllProtocols)
Creates a URLValidator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Field field)
Validate if the fieldValue string represents a valid URL.
|
public URLValidator()
public URLValidator(boolean allowAllProtocols)
allowAllProtocols - Determines whether all protocols are accepted, or only those configured within the JVM instance.public void validate(Field field) throws ValidationException
validate in interface FieldValidatorfield - the field (name and value) to validate.ValidationException - if the field is invalid.Copyright 2019 Ping Identity Corp. All rights reserved.