Class SessionMissingExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.SessionMissingExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<SessionMissingException>
,ExceptionDebugLogging
@Provider public class SessionMissingExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<SessionMissingException>, ExceptionDebugLogging
If a session is requested that has been closed (or never existed), just return an HTTP 410 Gone.- Author:
- awoods
-
-
Constructor Summary
Constructors Constructor Description SessionMissingExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(SessionMissingException 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
-
SessionMissingExceptionMapper
public SessionMissingExceptionMapper()
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(SessionMissingException e)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<SessionMissingException>
-
-