Class InterruptedExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.InterruptedExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<InterruptedRuntimeException>
,ExceptionDebugLogging
@Provider public class InterruptedExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<InterruptedRuntimeException>, ExceptionDebugLogging
If an HTTP request's processing is interrupted, return an HTTP 503 Service Unavailable.- Author:
- Mike Durbin
-
-
Constructor Summary
Constructors Constructor Description InterruptedExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(InterruptedRuntimeException e)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.http.commons.exceptionhandlers.ExceptionDebugLogging
debugException
-
-
-
-
Constructor Detail
-
InterruptedExceptionMapper
public InterruptedExceptionMapper()
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(InterruptedRuntimeException e)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<InterruptedRuntimeException>
-
-