org.jboss.seam.social
Interface JsonMapper

All Superinterfaces:
Serializable

public interface JsonMapper
extends Serializable

Implementation of this Interface will manage Json Serialization / De-serialization to and from Object

Author:
Antoine Sabot-Durand

Method Summary
<T> T
mapToObject(RestResponse resp, Class<T> clazz)
          Parse the content of the provided RestResponse to de-serialize to an object of the given Class
 String ObjectToJsonString(Object obj)
           
 

Method Detail

mapToObject

<T> T mapToObject(RestResponse resp,
                  Class<T> clazz)
Parse the content of the provided RestResponse to de-serialize to an object of the given Class

Parameters:
resp - the response to de-serialize
clazz - the target class of the object
Returns:
an object of the given Class with fields coming from the response

ObjectToJsonString

String ObjectToJsonString(Object obj)
Parameters:
obj -
Returns:


Copyright © 2011-2013 Seam Framework. All Rights Reserved.