Package org.apache.velocity.tools.view
Class XmlTool
- java.lang.Object
-
- org.apache.velocity.tools.generic.SafeConfig
-
- org.apache.velocity.tools.generic.XmlTool
-
- org.apache.velocity.tools.view.XmlTool
-
- All Implemented Interfaces:
java.io.Serializable
public class XmlTool extends org.apache.velocity.tools.generic.XmlToolView version ofXmlTool. It adds an automatic parsing of the HTTP query body content, if it is found to be of JSON type.- Since:
- VelocityTools 3.0
- Version:
- $Id:$
- Author:
- Claude Brisson
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(org.apache.velocity.tools.generic.ValueParser values)Configuration.protected voidinitializeImportSupport(org.apache.velocity.tools.generic.ValueParser config)ImportSupport initialization.-
Methods inherited from class org.apache.velocity.tools.generic.XmlTool
attr, attributes, children, fetch, find, find, get, get, getFirst, getLast, getName, getNodeName, getNodePath, getParent, getPath, getText, isEmpty, iterator, node, parents, parse, read, setRoot, size, toString
-
-
-
-
Method Detail
-
initializeImportSupport
protected void initializeImportSupport(org.apache.velocity.tools.generic.ValueParser config)
ImportSupport initialization.- Overrides:
initializeImportSupportin classorg.apache.velocity.tools.generic.XmlTool- Parameters:
config- configuration values
-
configure
protected void configure(org.apache.velocity.tools.generic.ValueParser values)
Configuration. Parses request body if appropriate.- Overrides:
configurein classorg.apache.velocity.tools.generic.XmlTool- Parameters:
values- configuration values
-
-