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:
ExceptionMapper<CustomNotFoundException>

@Provider
public class NotFoundExceptionMapper
extends Object
implements 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
 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 Response toResponse(CustomNotFoundException exception)
Specified by:
toResponse in interface ExceptionMapper<CustomNotFoundException>


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.