org.glassfish.jersey.server.mvc.beanvalidation
Class MvcBeanValidationFeature

java.lang.Object
  extended by org.glassfish.jersey.server.mvc.beanvalidation.MvcBeanValidationFeature
All Implemented Interfaces:
javax.ws.rs.core.Feature

@ConstrainedTo(value=SERVER)
public class MvcBeanValidationFeature
extends Object
implements javax.ws.rs.core.Feature

Feature used to add support for MVC and Bean Validation.

Viewable (template) defined by ErrorTemplate annotation, present directly on an executed resource method or on a resource class the resource method is defined in, is processed to display an error message caused by an Bean Validation exception. Model is, in this case, a list of validation errors.

Note: This feature also registers MvcFeature.

Since:
2.3
Author:
Michal Gajdos (michal.gajdos at oracle.com)
See Also:
ErrorTemplate

Constructor Summary
MvcBeanValidationFeature()
           
 
Method Summary
 boolean configure(javax.ws.rs.core.FeatureContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MvcBeanValidationFeature

public MvcBeanValidationFeature()
Method Detail

configure

public boolean configure(javax.ws.rs.core.FeatureContext context)
Specified by:
configure in interface javax.ws.rs.core.Feature


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