Class EventHeaders


  • public class EventHeaders
    extends java.lang.Object
    Contains the set of headers associated with a particular event instance.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONTENT_TYPE
      The content-type of the event
      static java.lang.String DEPLOYMENT_ID
      The deployment id associated with the event.
      static java.lang.String EVENT_ADDRESS
      The address location of where the event is to be published
      static java.lang.String EVENT_SOURCE
      The event's source, typically referring to the application that published the event.
      static java.lang.String EVENT_SUBJECT
      The event's subject, used to determine how the event should be routed
      static java.lang.String PUBLISHED_TIMESTAMP
      The timestamp (date-time) value for when the event was published to the message broker
      static java.lang.String REMOTE_ADDRESS
      The remote address of the publisher
      static java.lang.String TRACE_ID
      The trace id associated with the event.
    • Constructor Summary

      Constructors 
      Constructor Description
      EventHeaders()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsHeader​(java.lang.String key)  
      boolean equals​(java.lang.Object obj)  
      java.lang.Object get​(java.lang.String key)  
      <T> T get​(java.lang.String key, java.lang.Class<T> typeClass)  
      java.util.Map<java.lang.String,​java.lang.Object> getHeaders()  
      int hashCode()  
      void set​(java.lang.String key, java.lang.Object value)  
      void setHeaders​(java.util.Map<java.lang.String,​java.lang.Object> headers)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EVENT_ADDRESS

        public static final java.lang.String EVENT_ADDRESS
        The address location of where the event is to be published
        See Also:
        Constant Field Values
      • EVENT_SUBJECT

        public static final java.lang.String EVENT_SUBJECT
        The event's subject, used to determine how the event should be routed
        See Also:
        Constant Field Values
      • EVENT_SOURCE

        public static final java.lang.String EVENT_SOURCE
        The event's source, typically referring to the application that published the event.
        See Also:
        Constant Field Values
      • CONTENT_TYPE

        public static final java.lang.String CONTENT_TYPE
        The content-type of the event
        See Also:
        Constant Field Values
      • PUBLISHED_TIMESTAMP

        public static final java.lang.String PUBLISHED_TIMESTAMP
        The timestamp (date-time) value for when the event was published to the message broker
        See Also:
        Constant Field Values
      • REMOTE_ADDRESS

        public static final java.lang.String REMOTE_ADDRESS
        The remote address of the publisher
        See Also:
        Constant Field Values
      • TRACE_ID

        public static final java.lang.String TRACE_ID
        The trace id associated with the event.
        See Also:
        Constant Field Values
      • DEPLOYMENT_ID

        public static final java.lang.String DEPLOYMENT_ID
        The deployment id associated with the event.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EventHeaders

        public EventHeaders()
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String key)
      • get

        public <T> T get​(java.lang.String key,
                         java.lang.Class<T> typeClass)
      • containsHeader

        public boolean containsHeader​(java.lang.String key)
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.Object> getHeaders()
      • set

        public void set​(java.lang.String key,
                        java.lang.Object value)
      • setHeaders

        public void setHeaders​(java.util.Map<java.lang.String,​java.lang.Object> headers)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object