Package net.n2oapp.platform.jaxrs
Class ViolationRestExceptionMapper
- java.lang.Object
-
- net.n2oapp.platform.jaxrs.ViolationRestExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<javax.validation.ValidationException>,RestExceptionMapper<javax.validation.ValidationException>
@Provider public class ViolationRestExceptionMapper extends Object implements RestExceptionMapper<javax.validation.ValidationException>
Преобразование исключений JSR303 в сообщенияRestMessageREST сервиса
-
-
Constructor Summary
Constructors Constructor Description ViolationRestExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response.StatusgetStatus()RestMessagetoMessage(javax.validation.ValidationException exception)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.n2oapp.platform.jaxrs.RestExceptionMapper
toResponse
-
-
-
-
Method Detail
-
toMessage
public RestMessage toMessage(javax.validation.ValidationException exception)
- Specified by:
toMessagein interfaceRestExceptionMapper<javax.validation.ValidationException>
-
getStatus
public javax.ws.rs.core.Response.Status getStatus()
- Specified by:
getStatusin interfaceRestExceptionMapper<javax.validation.ValidationException>
-
-