Package org.apereo.cas.web
Interface UrlValidator
-
- All Known Implementing Classes:
SimpleUrlValidator
public interface UrlValidatorDefine the behavior of an url validator.- Since:
- 5.2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAMEBean name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid(java.lang.String value)Checks if a field has a valid url address.booleanisValidDomain(java.lang.String value)Checks if a field has a valid domain.
-
-
-
Field Detail
-
BEAN_NAME
static final java.lang.String BEAN_NAME
Bean name.- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
boolean isValid(java.lang.String value)
Checks if a field has a valid url address.
Note that the method calls #isValidAuthority() which checks that the domain is valid.
- Parameters:
value- The value validation is being performed on. Anullvalue is considered invalid.- Returns:
- true if the url is valid.
-
isValidDomain
boolean isValidDomain(java.lang.String value)
Checks if a field has a valid domain.
- Parameters:
value- the value- Returns:
- true/false
-
-