In enterprise applications we usually encounter situations where we get invalid request for our RESTful webservice. The processing fails but client doesn't know the exact cause of problem. In the below article I explain how can we handle invalid request by overriding the exception handling of a Jersey based RESTful webservice.
Showing posts with label Jackson. Show all posts
Showing posts with label Jackson. Show all posts
Saturday, July 11, 2015
Jersey : Handle invalid json requests by overriding exception handling
Labels:
Exception,
Jackson,
Java,
Jersey,
JSON,
JsonMappingException,
JsonParseException,
Restful,
UnrecognizedPropertyException,
Webservice
Saturday, April 18, 2015
Parse json into multiple java pojos using Jackson annotations
Jackson is a suite of data-processing tools for Java (and JVM platform),
including the flagship streaming JSON parser / generator library,
matching data-binding library (POJOs to and from JSON). In real world programming we will encounter complex cases of JSON to POJO conversion. Here, is one such case where we want to parse a single JSON into multiple java POJOs.
Labels:
Annotations,
Deserialization,
Jackson,
Java,
JSON,
JsonIgnoreProperties,
JsonProperty,
pojo,
Restful,
Webservice
Subscribe to:
Posts (Atom)