public abstract class AbstractConverter<W>
extends java.lang.Object
implements org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>
Converter.CircularReferenceBehaviour| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
contentType |
protected java.lang.String |
encoding |
protected java.util.Map<java.lang.Class,java.util.List<java.lang.String>> |
excludes |
protected java.util.Map<java.lang.Class,java.util.List<java.lang.String>> |
includes |
DEFAULT_REQUEST_ENCODING| Constructor and Description |
|---|
AbstractConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.BeanWrapper |
createBeanWrapper(java.lang.Object o) |
java.util.List<java.lang.String> |
getExcludes(java.lang.Class type)
Gets the excludes for the given type
|
java.util.List<java.lang.String> |
getIncludes(java.lang.Class type)
Gets the includes for the given type
|
void |
setContentType(java.lang.String contentType)
Sets the content type of the converter
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding of the converter
|
void |
setExcludes(java.lang.Class type,
java.util.List<java.lang.String> properties)
Set to exclude properties for the given type
|
void |
setIncludes(java.lang.Class type,
java.util.List<java.lang.String> properties)
Set to include properties for the given type
|
abstract void |
setTarget(java.lang.Object target) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuild, convertAnother, getWriter, lookupObjectMarshaller, render, renderprotected java.lang.String contentType
protected java.lang.String encoding
protected java.util.Map<java.lang.Class,java.util.List<java.lang.String>> includes
protected java.util.Map<java.lang.Class,java.util.List<java.lang.String>> excludes
public abstract void setTarget(java.lang.Object target)
public void setContentType(java.lang.String contentType)
setContentType in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>contentType - The content typepublic void setEncoding(java.lang.String encoding)
setEncoding in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>encoding - The encodingpublic void setIncludes(java.lang.Class type,
java.util.List<java.lang.String> properties)
setIncludes in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>type - The typeproperties - The propertiespublic void setExcludes(java.lang.Class type,
java.util.List<java.lang.String> properties)
setExcludes in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>type - The typeproperties - The propertiespublic java.util.List<java.lang.String> getExcludes(java.lang.Class type)
getExcludes in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>type - The typepublic java.util.List<java.lang.String> getIncludes(java.lang.Class type)
getIncludes in interface org.codehaus.groovy.grails.web.converters.ConfigurableConverter<W>type - The typepublic java.lang.String toString()
toString in class java.lang.Objectprotected org.springframework.beans.BeanWrapper createBeanWrapper(java.lang.Object o)