org.jboss.seam.rest.validation
Annotation Type ValidateRequest


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Inherited
@InterceptorBinding
public @interface ValidateRequest

Triggers validation of incomming HTTP requests. The Default group is validated if not specified otherwise. By default, the following elements are validated: - message body parameter - parameter objects - fields of the JAX-RS resource

This behaviour can be altered using validateMessageBody(), #validateFormParameters() and validateResourceFields() attributes.

Author:
Jozef Hartinger

Optional Element Summary
 Class<?>[] groups
          Validation group that will be used during validation process.
 boolean validateMessageBody
          If set to false, the message body parameter will not be validated.
 boolean validateResourceFields
          If set to false, the JAX-RS resource fields will not be validated.
 

groups

public abstract Class<?>[] groups
Validation group that will be used during validation process.

Default:
javax.validation.groups.Default.class

validateMessageBody

public abstract boolean validateMessageBody
If set to false, the message body parameter will not be validated.

Default:
true

validateResourceFields

public abstract boolean validateResourceFields
If set to false, the JAX-RS resource fields will not be validated.

Default:
true


Copyright © 2011 Seam Framework. All Rights Reserved.