org.glassfish.jersey.examples.jersey_ejb.exceptions
Class NotFoundExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.jersey_ejb.exceptions.NotFoundExceptionMapper
- All Implemented Interfaces:
- ExceptionMapper<NotFoundException>
@Provider
public class NotFoundExceptionMapper
- extends Object
- implements ExceptionMapper<NotFoundException>
An exception mapper to return 404 responses when a NotFoundException is thrown.
- Author:
- Pavel Bucek (pavel.bucek at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotFoundExceptionMapper
public NotFoundExceptionMapper()
toResponse
public Response toResponse(NotFoundException exception)
- Specified by:
toResponse in interface ExceptionMapper<NotFoundException>
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.