org.hudsonci.rest.api.internal
Class NotFoundExceptionMapper

java.lang.Object
  extended by org.hudsonci.rest.api.internal.NotFoundExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<NotFoundException>

@Provider
public class NotFoundExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<NotFoundException>

Generates NOT_FOUND responses for NotFoundExceptions. The Throwable.getMessage() is used to supply information in the response about what was not found.

Since:
2.1.0
Author:
Peter Lynch

Constructor Summary
NotFoundExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(NotFoundException cause)
           
 
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(NotFoundException cause)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<NotFoundException>


Copyright © 2004-2011 Hudson. All Rights Reserved.