public class XML extends AbstractConverter implements IncludeExcludeConverter
A converter that converts domain classes to XML.
| Modifiers | Name | Description |
|---|---|---|
class |
XML.Builder |
| Modifiers | Name | Description |
|---|---|---|
static org.apache.commons.logging.Log |
log |
| Fields inherited from class | Fields |
|---|---|
class AbstractConverter |
contentType, encoding, excludes, includes |
| Constructor and description |
|---|
XML() |
XML(Object target) |
XML(XMLStreamWriter writer) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public XML |
attribute(String name, String value) |
|
public void |
build(Closure c) |
|
public XML |
chars(String chars) |
|
public void |
convertAnother(Object o) |
|
public static void |
createNamedConfig(String name, Closure<?> callable) |
|
public XML |
end() |
|
public int |
getDepth() |
|
public String |
getElementName(Object o) |
|
public static ConverterConfiguration<XML> |
getNamedConfig(String configName) |
|
public StreamingMarkupWriter |
getStream() |
|
public XMLStreamWriter |
getWriter() |
|
protected void |
handleCircularRelationship(Object o) |
|
protected ConverterConfiguration<XML> |
initConfig() |
|
public ObjectMarshaller<XML> |
lookupObjectMarshaller(Object target) |
|
public static GPathResult |
parse(String source)Parses the given XML |
|
public static GPathResult |
parse(InputStream is, String encoding)Parses the given XML |
|
public static Object |
parse(HttpServletRequest request)Parses the give XML (read from the POST Body of the Request) |
|
public static void |
registerObjectMarshaller(Class<?> clazz, Closure<?> callable) |
|
public static void |
registerObjectMarshaller(Class<?> clazz, int priority, Closure<?> callable) |
|
public static void |
registerObjectMarshaller(ObjectMarshaller<XML> om) |
|
public static void |
registerObjectMarshaller(ObjectMarshaller<XML> om, int priority) |
|
public void |
render(Writer out) |
|
public void |
render(HttpServletResponse response) |
|
public void |
setExcludes(List<String> excludes) |
|
public void |
setIncludes(List<String> includes) |
|
public void |
setTarget(Object target) |
|
public XML |
startNode(String tagName) |
|
public String |
toString() |
|
public static Object |
use(String configName, Closure<?> callable) |
|
public static void |
use(String cfgName) |
|
public static void |
withDefaultConfiguration(Closure<?> callable) |
| Methods inherited from class | Name |
|---|---|
class AbstractConverter |
createBeanWrapper, getExcludes, getIncludes, setContentType, setEncoding, setExcludes, setIncludes, setTarget, toString, writeTo |
Parses the given XML
source - a String containing some XMLParses the given XML
is - an InputStream to read fromencoding - the Character Encoding to useParses the give XML (read from the POST Body of the Request)
request - an HttpServletRequest