Package org.opencastproject.test.rest
Class NotFoundExceptionMapper
java.lang.Object
org.opencastproject.test.rest.NotFoundExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<NotFoundException>
@Provider
public class NotFoundExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<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
-
Constructor Details
-
NotFoundExceptionMapper
public NotFoundExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<NotFoundException>
-