Class AbstractProtocolEvent

    • Constructor Detail

      • AbstractProtocolEvent

        public AbstractProtocolEvent​(java.lang.String origin)
    • Method Detail

      • getHeaderMap

        protected java.util.Map<java.lang.String,​java.lang.String> getHeaderMap()
        Get the internal header map.
        Returns:
        the internal header map.
      • withHeaderMap

        public AbstractProtocolEvent withHeaderMap​(java.util.Map<java.lang.String,​java.lang.String> inputMap)
        Populate the contents of the inputMap into the header map.
        Parameters:
        inputMap - the input map to add onto the header map.
        Returns:
        the 'this' for method chaining
      • withHeaderData

        public AbstractProtocolEvent withHeaderData​(java.lang.String key,
                                                    java.lang.String value)
        Stores the key-value pair into the header map.
        Parameters:
        key - the key used to associate a header mapping.
        value - The header value associated with the key in the header.
        Returns:
        "This" for method chaining.
      • getHeaderData

        public java.lang.String getHeaderData​(java.lang.String key)
        Get the value of header information tied to this event.
        Specified by:
        getHeaderData in interface ProtocolEvent
        Parameters:
        key - the name of the header
        Returns:
        the header value associated with the key.