Errai 3.0.1-SNAPSHOT

org.jboss.errai.enterprise.client.jaxrs
Class MarshallingWrapper

java.lang.Object
  extended by org.jboss.errai.enterprise.client.jaxrs.MarshallingWrapper

public class MarshallingWrapper
extends Object

Wrapper around Marshalling to provide a hook for format transformations.

Author:
Christian Sadilek

Constructor Summary
MarshallingWrapper()
           
 
Method Summary
static Object fromJSON(String json)
           
static
<K,V> Map<K,V>
fromJSON(String json, Class<?> type, Class<K> mapKeyType, Class<V> mapValueType)
           
static
<T> T
fromJSON(String json, Class<T> type)
           
static
<T> T
fromJSON(String json, Class<T> type, Class<?> elementType)
           
static String toJSON(List<?> arr)
           
static String toJSON(Map<Object,Object> obj)
           
static String toJSON(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallingWrapper

public MarshallingWrapper()
Method Detail

toJSON

public static String toJSON(Object obj)

toJSON

public static String toJSON(Map<Object,Object> obj)

toJSON

public static String toJSON(List<?> arr)

fromJSON

public static <T> T fromJSON(String json,
                             Class<T> type)

fromJSON

public static <T> T fromJSON(String json,
                             Class<T> type,
                             Class<?> elementType)

fromJSON

public static <K,V> Map<K,V> fromJSON(String json,
                                      Class<?> type,
                                      Class<K> mapKeyType,
                                      Class<V> mapValueType)

fromJSON

public static Object fromJSON(String json)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.