Class NotificationCommandManager

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Command getCommand​(java.lang.String name)
      Gets a notification command for a particular command name.
      java.util.Map<java.lang.String,​Command> getCommands()
      Gets all configured notification commands.
      protected void parseXML​(java.io.InputStream stream)
      Populate the internal list of notification commands from an XML file.
      abstract void update()
      update
      • Methods inherited from class java.lang.Object

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

      • NotificationCommandManager

        public NotificationCommandManager()
    • Method Detail

      • parseXML

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

        public abstract void update()
                             throws java.lang.Exception

        update

        Throws:
        java.lang.Exception - if any.
      • getCommand

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

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