org.hibernate.validator.constraints
Annotation Type URL


@Documented
@Constraint(validatedBy=URLValidator.class)
@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(value=RUNTIME)
public @interface URL

Validate that the string is a valid URL.

Author:
Hardy Ferentschik

Optional Element Summary
 Class<?>[] groups
           
 String host
           
 String message
           
 Class<? extends Payload>[] payload
           
 int port
           
 String protocol
           
 

protocol

public abstract String protocol
Default:
""

host

public abstract String host
Default:
""

port

public abstract int port
Default:
-1

message

public abstract String message
Default:
"{org.hibernate.validator.constraints.URL.message}"

groups

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

payload

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


Copyright © 2007-2010 Red Hat Middleware, LLC. All Rights Reserved