com.fasterxml.jackson.jaxrs.xml
Class JsonMappingExceptionMapper

java.lang.Object
  extended by com.fasterxml.jackson.jaxrs.xml.JsonMappingExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>

@Provider
public class JsonMappingExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>

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


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

Constructor Detail

JsonMappingExceptionMapper

public JsonMappingExceptionMapper()
Method Detail

toResponse

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


Copyright © 2012 FasterXML. All Rights Reserved.