|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.validation.internal.ValidationExceptionMapper
@Priority(value=5000) public class ValidationExceptionMapper
ExceptionMapper for ValidationException.
ValidationError
instances is sent in Response as well (in addition to HTTP 400/500 status code). Supported media types are:
application/json/application/xml (in appropriate provider is registered on server) or
text/html/text/plain (via custom ValidationErrorMessageBodyWriter).
| Constructor Summary | |
|---|---|
ValidationExceptionMapper()
|
|
| Method Summary | |
|---|---|
Response |
toResponse(javax.validation.ValidationException exception)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationExceptionMapper()
| Method Detail |
|---|
public Response toResponse(javax.validation.ValidationException exception)
toResponse in interface ExceptionMapper<javax.validation.ValidationException>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||