|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.converters.configuration.DefaultConverterConfiguration<C>
public class DefaultConverterConfiguration<C extends Converter>
Mutable Converter Configuration with an priority sorted set of ObjectMarshallers
| Nested Class Summary | |
|---|---|
class |
DefaultConverterConfiguration.Entry
|
| Field Summary | |
|---|---|
static int |
DEFAULT_PRIORITY
|
| Constructor Summary | |
|---|---|
DefaultConverterConfiguration()
|
|
DefaultConverterConfiguration(ConverterConfiguration<C> delegate)
|
|
DefaultConverterConfiguration(List<ObjectMarshaller<C>> oms)
|
|
| Method Summary | |
|---|---|
Converter.CircularReferenceBehaviour |
getCircularReferenceBehaviour()
Lookup the configured CircularReferenceBehaviour (how the converter should behave when a circular reference is detected) |
String |
getEncoding()
Lookup the configured default Character encoding for the Converter |
ObjectMarshaller<C> |
getMarshaller(Object o)
Lookup the ObjectMarshaller with the highest priority that support to marshall the given object |
List<ObjectMarshaller<C>> |
getOrderedObjectMarshallers()
Retrieve the ordered list of ObjectMarshallers |
boolean |
isPrettyPrint()
Lookup method whether the converter should default to pretty printed output |
void |
registerObjectMarshaller(Class c,
groovy.lang.Closure callable)
|
void |
registerObjectMarshaller(Class c,
int priority,
groovy.lang.Closure callable)
|
void |
registerObjectMarshaller(ObjectMarshaller<C> marshaller)
|
void |
registerObjectMarshaller(ObjectMarshaller<C> marshaller,
int priority)
|
void |
setCircularReferenceBehaviour(Converter.CircularReferenceBehaviour circularReferenceBehaviour)
|
void |
setEncoding(String encoding)
|
void |
setPrettyPrint(boolean prettyPrint)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PRIORITY
| Constructor Detail |
|---|
public DefaultConverterConfiguration()
public DefaultConverterConfiguration(ConverterConfiguration<C> delegate)
public DefaultConverterConfiguration(List<ObjectMarshaller<C>> oms)
| Method Detail |
|---|
public String getEncoding()
ConverterConfiguration
getEncoding in interface ConverterConfiguration<C extends Converter>public void setEncoding(String encoding)
public Converter.CircularReferenceBehaviour getCircularReferenceBehaviour()
ConverterConfiguration
getCircularReferenceBehaviour in interface ConverterConfiguration<C extends Converter>Converter.CircularReferenceBehaviourpublic boolean isPrettyPrint()
ConverterConfiguration
isPrettyPrint in interface ConverterConfiguration<C extends Converter>public void setPrettyPrint(boolean prettyPrint)
public List<ObjectMarshaller<C>> getOrderedObjectMarshallers()
ConverterConfiguration
getOrderedObjectMarshallers in interface ConverterConfiguration<C extends Converter>public void setCircularReferenceBehaviour(Converter.CircularReferenceBehaviour circularReferenceBehaviour)
public void registerObjectMarshaller(ObjectMarshaller<C> marshaller)
public void registerObjectMarshaller(ObjectMarshaller<C> marshaller,
int priority)
public void registerObjectMarshaller(Class c,
int priority,
groovy.lang.Closure callable)
public void registerObjectMarshaller(Class c,
groovy.lang.Closure callable)
public ObjectMarshaller<C> getMarshaller(Object o)
ConverterConfiguration
getMarshaller in interface ConverterConfiguration<C extends Converter>o - the object which is about to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||