Class JsonParseExceptionMapper
- java.lang.Object
-
- org.fcrepo.http.commons.exceptionhandlers.JsonParseExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
,ExceptionDebugLogging
@Provider public class JsonParseExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>, ExceptionDebugLogging
If an injected JSON resource fails to parse, return an HTTP 400 Bad Request.- Since:
- 2014-05-21
- Author:
- Esme Cowles
-
-
Constructor Summary
Constructors Constructor Description JsonParseExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(com.fasterxml.jackson.core.JsonParseException 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
-
JsonParseExceptionMapper
public JsonParseExceptionMapper()
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonParseException e)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
-
-