Package org.opencastproject.test.rest
Class NotFoundExceptionMapper
java.lang.Object
org.opencastproject.test.rest.NotFoundExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>
@Provider
public class NotFoundExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>
Jersey does not map Opencast exceptions to REST exceptions. To do this,
ExceptionMapper's like this has to
be written. http://avianey.blogspot.ch/2011/12/exception-mapping-jersey.html-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(org.opencastproject.util.NotFoundException e)
-
Constructor Details
-
NotFoundExceptionMapper
public NotFoundExceptionMapper()
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(org.opencastproject.util.NotFoundException e) - Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<org.opencastproject.util.NotFoundException>
-