public class ObjectMapperSerializationContextImpl extends Object implements ObjectMapperSerializationContext, groovy.lang.GroovyObject
| Constructor and Description |
|---|
ObjectMapperSerializationContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
If a charset is specified in the content-type then this method will return that charset otherwise
it'll return the default content charset specified in the REST Assured configuration.
|
String |
getContentType() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getObject() |
Object |
getObjectToSerialize() |
<T> T |
getObjectToSerializeAs(Class<T> expectedType) |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
void |
setCharset(Object value) |
void |
setContentType(Object value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setObject(Object value) |
void |
setProperty(String property,
Object value) |
public ObjectMapperSerializationContextImpl()
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 getObject()
public void setObject(Object value)
public void setContentType(Object value)
public void setCharset(Object value)
public Object getObjectToSerialize()
getObjectToSerialize in interface ObjectMapperSerializationContextpublic <T> T getObjectToSerializeAs(Class<T> expectedType)
getObjectToSerializeAs in interface ObjectMapperSerializationContextpublic String getContentType()
getContentType in interface ObjectMapperSerializationContextnull if not defined.public String getCharset()
ObjectMapperSerializationContextgetCharset in interface ObjectMapperSerializationContextnull if not defined.Copyright © 2010–2014. All rights reserved.