com.silverpeas.web.mappers
Class EntityNotFoundExceptionMapper
java.lang.Object
com.silverpeas.web.mappers.EntityNotFoundExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>
@Provider
public class EntityNotFoundExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>
Implementation of ExceptionMapper to send down a "404 Not Found" in the event unparsable JSON is
received.
Method Summary |
javax.ws.rs.core.Response |
toResponse(javax.persistence.EntityNotFoundException exception)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityNotFoundExceptionMapper
public EntityNotFoundExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(javax.persistence.EntityNotFoundException exception)
- Specified by:
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<javax.persistence.EntityNotFoundException>
Copyright © 2016 Silverpeas. All Rights Reserved.