org.glassfish.jersey.examples.jersey_ejb.exceptions
Class NotFoundExceptionMapper

java.lang.Object
  extended by 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)

Constructor Summary
NotFoundExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(CustomNotFoundException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotFoundExceptionMapper

public NotFoundExceptionMapper()
Method Detail

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.