Class PropertyAction

  • All Implemented Interfaces:
    ContextAware

    public class PropertyAction
    extends Action
    This class serves as a base for other actions, which similar to the ANT task which add/set properties of a given object. This action sets new substitution properties in the logging context by name, value pair, or adds all the properties passed in "file" or "resource" attribute.
    • Field Detail

      • INVALID_ATTRIBUTES

        static java.lang.String INVALID_ATTRIBUTES
    • Constructor Detail

      • PropertyAction

        public PropertyAction()
    • Method Detail

      • begin

        public void begin​(InterpretationContext ec,
                          java.lang.String localName,
                          org.xml.sax.Attributes attributes)
        Set a new property for the execution context by name, value pair, or adds all the properties found in the given file.
        Specified by:
        begin in class Action
      • loadAndSetProperties

        void loadAndSetProperties​(InterpretationContext ec,
                                  java.io.InputStream istream,
                                  ActionUtil.Scope scope)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • checkFileAttributeSanity

        boolean checkFileAttributeSanity​(org.xml.sax.Attributes attributes)
      • checkResourceAttributeSanity

        boolean checkResourceAttributeSanity​(org.xml.sax.Attributes attributes)
      • checkValueNameAttributesSanity

        boolean checkValueNameAttributesSanity​(org.xml.sax.Attributes attributes)