Class AbstractProtocolResponseEvent

    • Constructor Detail

      • AbstractProtocolResponseEvent

        public AbstractProtocolResponseEvent​(java.lang.String origin,
                                             ProtocolRequestEvent requestEvent)
    • Method Detail

      • withResponse

        public AbstractProtocolResponseEvent withResponse​(java.lang.Object response)
        Add the response object into this protocol event.
        Parameters:
        response - The response object associated with this event.
        Returns:
        "This" for the method chaining.
      • withStatusIndicator

        public AbstractProtocolResponseEvent withStatusIndicator​(java.lang.String statusIndicator)
        Add the status indicator into this event.
        Parameters:
        statusIndicator - The string status indicator.
        Returns:
        "This" for the method chaining.
      • getResponse

        public java.lang.Object getResponse()
        Get the protocol-level response object
        Specified by:
        getResponse in interface ProtocolResponseEvent
        Returns:
        the request object
      • getStatusIndicator

        public java.lang.String getStatusIndicator()
        Returns the status indicator of this response event.
        Specified by:
        getStatusIndicator in interface ProtocolResponseEvent
        Returns:
        String representation of the status indicator