Class PreconditionExceptionMapper
java.lang.Object
org.fcrepo.http.commons.exceptionhandlers.PreconditionExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.PreconditionException>,ExceptionDebugLogging
@Provider
public class PreconditionExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.PreconditionException>, ExceptionDebugLogging
Maps PreconditionException to an appropriate http response.
- Since:
- Jun 22, 2017
- Author:
- Daniel Bernstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsetoResponse(org.fcrepo.kernel.api.exception.PreconditionException e) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
Constructor Details
-
PreconditionExceptionMapper
public PreconditionExceptionMapper()
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(org.fcrepo.kernel.api.exception.PreconditionException e) - Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.PreconditionException>
-