Class InterruptedExceptionMapper

java.lang.Object
org.fcrepo.http.commons.exceptionhandlers.InterruptedExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InterruptedRuntimeException>, ExceptionDebugLogging

@Provider public class InterruptedExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InterruptedRuntimeException>, ExceptionDebugLogging
If an HTTP request's processing is interrupted, return an HTTP 503 Service Unavailable.
Author:
Mike Durbin
  • Constructor Details

  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(org.fcrepo.kernel.api.exception.InterruptedRuntimeException e)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.InterruptedRuntimeException>