org.nuxeo.ecm.automation.client.jaxrs.spi
Class JsonMarshalling
java.lang.Object
org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling
public class JsonMarshalling
- extends Object
- Author:
- Bogdan Stefanescu
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.