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
requestObject(RestResponse resp, Class<T> clazz)
          Parse the content of the provided RestResponse to de-serialize to an object of the given Class
 

Method Detail

requestObject

<T> T requestObject(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


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