org.glassfish.jersey.examples.shortener.webapp.validation
Annotation Type ValidShortenedLink


@Retention(value=RUNTIME)
@Constraint(validatedBy={ValidShortenedLink.StringValidator.class,ValidShortenedLink.ShortenedLinkValidator.class})
public @interface ValidShortenedLink

Checks whether the short link form provided by a client is stored in ShortenerService.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Optional Element Summary
 Class<?>[] groups
           
 String message
           
 Class<? extends javax.validation.Payload>[] payload
           
 

message

public abstract String message
Default:
"{not.valid.shortened.link}"

groups

public abstract Class<?>[] groups
Default:
{}

payload

public abstract Class<? extends javax.validation.Payload>[] payload
Default:
{}


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.