public class GsonMapper extends Object implements ObjectMapper, groovy.lang.GroovyObject
GSON, JACKSON, JAXB| Constructor and Description |
|---|
GsonMapper(GsonObjectMapperFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(ObjectMapperDeserializationContext context)
Deserialize a response to a Java object
|
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
Object |
serialize(ObjectMapperSerializationContext context)
Serialize a request to an object (String, InputStream or byte[]) that'll be used as the request body.
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
public GsonMapper(GsonObjectMapperFactory factory)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic Object deserialize(ObjectMapperDeserializationContext context)
ObjectMapperdeserialize in interface ObjectMappercontext - The details needed to convert the response to a Java objectpublic Object serialize(ObjectMapperSerializationContext context)
ObjectMapperserialize in interface ObjectMappercontext - The details needed to convert the request from a Java object to a objectCopyright © 2010–2014. All rights reserved.