Class MultiHandler

    • Field Detail

      • m_Handlers

        protected RequestHandler[] m_Handlers
        the handlers to combine.
    • Constructor Detail

      • MultiHandler

        public MultiHandler()
    • Method Detail

      • setHandlers

        public void setHandlers​(RequestHandler[] value)
        Sets the handlers to use.
        Parameters:
        value - the handlers
      • getHandlers

        public RequestHandler[] getHandlers()
        Returns the handlers in use.
        Returns:
        the handlers
      • handlersTipText

        public String handlersTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • addHandler

        public void addHandler​(RequestHandler value)
        Adds the handler to use.
        Parameters:
        value - the handler to add
      • requestSuccessful

        public void requestSuccessful​(RemoteCommand cmd)
        Handles successfuly requests.
        Parameters:
        cmd - the command with the request
      • requestFailed

        public void requestFailed​(RemoteCommand cmd,
                                  String msg)
        Handles failed requests.
        Parameters:
        cmd - the command with the request
        msg - the optional error message, can be null
      • requestRejected

        public void requestRejected​(RemoteCommand cmd,
                                    String msg)
        Handles rejected requests.
        Parameters:
        cmd - the command with the request
        msg - the optional error message, can be null