public class JsonMarshalling extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonMarshalling.ThowrableTypeModifier |
static class |
JsonMarshalling.ThrowableDeserializer |
Modifier and Type | Field and Description |
---|---|
protected static org.codehaus.jackson.JsonFactory |
factory |
protected static org.apache.commons.logging.Log |
log |
protected static Map<Class<?>,JsonMarshaller<?>> |
marshallersByJavaType |
protected static Map<String,JsonMarshaller<?>> |
marshallersByType |
Modifier and Type | Method and Description |
---|---|
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 org.codehaus.jackson.JsonFactory |
newJsonFactory() |
static Object |
readEntity(String content) |
static OperationRegistry |
readRegistry(String content) |
static void |
write(org.codehaus.jackson.JsonGenerator jg,
Object obj) |
static void |
writeMap(org.codehaus.jackson.JsonGenerator jg,
Map<String,Object> map) |
static String |
writeRequest(OperationRequest req) |
protected static final org.apache.commons.logging.Log log
protected static org.codehaus.jackson.JsonFactory factory
protected static final Map<String,JsonMarshaller<?>> marshallersByType
protected static final Map<Class<?>,JsonMarshaller<?>> marshallersByJavaType
public static org.codehaus.jackson.JsonFactory getFactory()
public static org.codehaus.jackson.JsonFactory newJsonFactory()
public static void addMarshaller(JsonMarshaller<?> marshaller)
public static <T> JsonMarshaller<T> getMarshaller(String type)
public static <T> JsonMarshaller<T> getMarshaller(Class<T> clazz)
public static OperationRegistry readRegistry(String content) throws IOException
IOException
public static Object readEntity(String content) throws IOException
IOException
public static String writeRequest(OperationRequest req) throws IOException
IOException
public static void writeMap(org.codehaus.jackson.JsonGenerator jg, Map<String,Object> map) throws IOException
IOException
public static void write(org.codehaus.jackson.JsonGenerator jg, Object obj) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.