Class SessionMissingExceptionMapper

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

@Provider public class SessionMissingExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.fcrepo.kernel.api.exception.SessionMissingException>, ExceptionDebugLogging
If a session is requested that has been closed (or never existed), just return an HTTP 410 Gone.
Author:
awoods
  • Constructor Details

  • Method Details

    • toResponse

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