eu.scape_project.watch.rest.resource
Class JSONContextResolver

java.lang.Object
  extended by org.codehaus.jackson.jaxrs.JacksonJsonProvider
      extended by eu.scape_project.watch.rest.resource.JSONContextResolver
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>, org.codehaus.jackson.Versioned

@Provider
public class JSONContextResolver
extends org.codehaus.jackson.jaxrs.JacksonJsonProvider

Provider that configures Jackson to better detect methods and properties to serialize JSON.

Author:
Wordnik

Field Summary
 
Fields inherited from class org.codehaus.jackson.jaxrs.JacksonJsonProvider
_cfgCheckCanDeserialize, _cfgCheckCanSerialize, _cfgCustomUntouchables, _jsonpFunctionName, _mapperConfig, _providers, _unreadableClasses, _untouchables, _unwritableClasses, BASIC_ANNOTATIONS
 
Constructor Summary
JSONContextResolver()
           
 
Method Summary
static org.codehaus.jackson.map.ObjectMapper getCommonMapper()
          Get singleton instance.
 
Methods inherited from class org.codehaus.jackson.jaxrs.JacksonJsonProvider
_containedIn, _findView, addUntouchable, checkCanDeserialize, checkCanSerialize, configure, configure, configure, configure, disable, disable, disable, disable, enable, enable, enable, enable, findEncoding, getSize, isJsonType, isReadable, isWriteable, locateMapper, readFrom, setAnnotationsToUse, setJSONPFunctionName, setMapper, version, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONContextResolver

public JSONContextResolver()
Method Detail

getCommonMapper

public static org.codehaus.jackson.map.ObjectMapper getCommonMapper()
Get singleton instance.

Returns:
The singleton instance


Copyright © 2012 SCAPE. All Rights Reserved.