com.fasterxml.jackson.jaxrs.xml
Class JsonParseExceptionMapper

java.lang.Object
  extended by com.fasterxml.jackson.jaxrs.xml.JsonParseExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>

@Provider
public class JsonParseExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>

Implementation of ExceptionMapper to send down a "400 Bad Request" in the event unprocessable XML is received.


Constructor Summary
JsonParseExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonParseExceptionMapper

public JsonParseExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(com.fasterxml.jackson.core.JsonParseException exception)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>


Copyright © 2012 FasterXML. All Rights Reserved.