Class XmlTool

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • 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

        importSupport
      • Fields 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 
      Constructor Description
      XmlTool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(org.apache.velocity.tools.generic.ValueParser values)
      Configuration.
      protected void initializeImportSupport​(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
      • Methods inherited from class org.apache.velocity.tools.generic.SafeConfig

        configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XmlTool

        public XmlTool()
    • Method Detail

      • initializeImportSupport

        protected void initializeImportSupport​(org.apache.velocity.tools.generic.ValueParser config)
        ImportSupport initialization.
        Overrides:
        initializeImportSupport in class org.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:
        configure in class org.apache.velocity.tools.generic.XmlTool
        Parameters:
        values - configuration values