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:
Serializable
public class XmlTool
extends org.apache.velocity.tools.generic.XmlTool
View version of
XmlTool. 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.velocity.tools.generic.XmlTool
org.apache.velocity.tools.generic.XmlTool.NodeIterator -
Field Summary
Fields inherited from class org.apache.velocity.tools.generic.XmlTool
importSupportFields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, toStringMethods inherited from class org.apache.velocity.tools.generic.SafeConfig
configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
-
Constructor Details
-
XmlTool
public XmlTool()
-
-
Method Details
-
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
-