Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.spi
Class JsonMarshalling

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling

public class JsonMarshalling
extends Object

Author:
Bogdan Stefanescu

Method Summary
static void addMarshaller(JsonMarshaller<?> marshaller)
           
static org.codehaus.jackson.JsonFactory getFactory()
           
static
<T> JsonMarshaller<T>
getMarshaller(Class<T> clazz)
           
static
<T> JsonMarshaller<T>
getMarshaller(String type)
           
static Object readEntity(String content)
           
static OperationRegistry readRegistry(String content)
           
static void writeMap(org.codehaus.jackson.JsonGenerator jg, Map<String,Object> map)
           
static String writeRequest(OperationRequest req)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static org.codehaus.jackson.JsonFactory getFactory()

addMarshaller

public static void addMarshaller(JsonMarshaller<?> marshaller)

getMarshaller

public static <T> JsonMarshaller<T> getMarshaller(String type)

getMarshaller

public static <T> JsonMarshaller<T> getMarshaller(Class<T> clazz)

readRegistry

public static OperationRegistry readRegistry(String content)
                                      throws Exception
Throws:
Exception

readEntity

public static Object readEntity(String content)
                         throws Exception
Throws:
Exception

writeRequest

public static String writeRequest(OperationRequest req)
                           throws Exception
Throws:
Exception

writeMap

public static void writeMap(org.codehaus.jackson.JsonGenerator jg,
                            Map<String,Object> map)
                     throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.