Class NotificationCommandManager

    • Constructor Detail

      • NotificationCommandManager

        public NotificationCommandManager()
    • Method Detail

      • parseXML

        protected void parseXML​(InputStream stream)
                         throws IOException
        Populate the internal list of notification commands from an XML file.
        Parameters:
        reader - contains the XML file to be parsed
        Throws:
        IOException
      • update

        public abstract void update()
                             throws Exception

        update

        Throws:
        Exception - if any.
      • getCommand

        public Command getCommand​(String name)
        Gets a notification command for a particular command name.
        Parameters:
        name - a String object.
        Returns:
        a Command object.
      • getCommands

        public Map<String,​Command> getCommands()
        Gets all configured notification commands.
        Returns:
        a Map object.