org.glassfish.jersey.examples.jersey_ejb.exceptions
Class NotFoundExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.jersey_ejb.exceptions.NotFoundExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<CustomNotFoundException>
@Provider
public class NotFoundExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<CustomNotFoundException>
An exception mapper to return 404 responses when a CustomNotFoundException 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 javax.ws.rs.core.Response toResponse(CustomNotFoundException exception)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<CustomNotFoundException>
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.