org.hudsonci.maven.plugin.documents.rest
Class DocumentNotFoundExceptionMapper

java.lang.Object
  extended by org.hudsonci.maven.plugin.documents.rest.DocumentNotFoundExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<DocumentNotFoundException>

@Provider
public class DocumentNotFoundExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<DocumentNotFoundException>

Maps DocumentNotFoundException to a REST Response.Status.NOT_FOUND response.

Since:
2.1.0
Author:
Jason Dillon

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

Constructor Detail

DocumentNotFoundExceptionMapper

public DocumentNotFoundExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(DocumentNotFoundException cause)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<DocumentNotFoundException>


Copyright © 2004-2011 Hudson. All Rights Reserved.