public class AddCommand extends ClientCommand
Command for adding a notification listener for a client with optional filter and handback.
Since:
19.03.13
Author:
roland
  • Method Details

    • getMode

      public String getMode()
      The backend mode specifies which backend is used for delivering a notification. E.g. "pull" will store notification server side which must be fetched actively by a client
      Returns:
      backend mode
    • getObjectName

      public ObjectName getObjectName()
      Objectname of the MBean the listener should connect to
      Returns:
      mbean name
    • getFilter

      public List<String> getFilter()
      A list of string filters or null if no filters has been provided
      Returns:
      list of filters or null if none is given.
    • getHandback

      public Object getHandback()
      A handback object. For GET requests this is a String, for POSTS it can be an arbitrary JSON structure.
      Returns:
      handback object or null if none has been provided
    • getConfig

      public Map<String,Object> getConfig()
      Get the configuration for an add request
      Returns:
      map holding extra configuration. This can be null or empty.
    • toJSON

      public org.json.simple.JSONObject toJSON()
      Description copied from class: NotificationCommand
      Overrides:
      toJSON in class ClientCommand