|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface UrlValidator
This validator checks that a field is a valid URL.
@UrlValidator(message = "Default message", key = "i18n.key", shortCircuit = true)
Optional Element Summary | |
---|---|
String |
fieldName
The optional fieldName for SIMPLE validator types. |
String |
key
The message key to lookup for i18n. |
String |
message
The default error message for this validator. |
String[] |
messageParams
Additional params to be used to customize message - will be evaluated against the Value Stack |
boolean |
shortCircuit
If this is activated, the validator will be used as short-circuit. |
ValidatorType |
type
The validation type for this field/method. |
String |
urlRegex
Defines regex to use to validate url |
String |
urlRegexExpression
Defines regex as an expression which will be evaluated to string and used to validate url |
public abstract String message
public abstract String key
public abstract String[] messageParams
public abstract String fieldName
public abstract boolean shortCircuit
public abstract ValidatorType type
public abstract String urlRegex
public abstract String urlRegexExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |