de.smartics.validation.constraints
Annotation Type Available


@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy={UriAvailabilityValidator.class,UrlAvailabilityValidator.class,InetAdressAvailabilityValidator.class,MailServerAvailabilityValidator.class})
public @interface Available

The annotated element is checked to be available.


Optional Element Summary
 Class<?>[] groups
          Support of validation groups.
 String message
          Returns the message key to be rendered, if the constraint has been violated.
 Class<? extends javax.validation.Payload>[] payload
          Support of payloads.
 int timeout
          The connection timeout in milliseconds.
 String value
          The value expected to be returned.
 

value

public abstract String value
The value expected to be returned.

Default:
"200"

timeout

public abstract int timeout
The connection timeout in milliseconds.

Default:
1000

message

public abstract String message
Returns the message key to be rendered, if the constraint has been violated.

Defaults to returning "{de.smartics.validation.constraints.Available.message}".

Default:
"{de.smartics.validation.constraints.Available.message}"

groups

public abstract Class<?>[] groups
Support of validation groups.

Default:
{}

payload

public abstract Class<? extends javax.validation.Payload>[] payload
Support of payloads.

Default:
{}


Copyright © 2009-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.