Class MsgHeader

  • All Implemented Interfaces:
    IMsgHeader

    public class MsgHeader
    extends java.lang.Object
    implements IMsgHeader
    Message header with message meta information.
    • Constructor Summary

      Constructors 
      Constructor Description
      MsgHeader()
      Creates the header.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperty​(java.lang.String propname, java.lang.Object propval)
      Adds a header property to the header.
      java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      Gets the properties.
      java.lang.Object getProperty​(java.lang.String propertyname)
      Gets a property stored in the header.
      IComponentIdentifier getReceiver()
      Gets the receiver of the message.
      IComponentIdentifier getSender()
      Gets the sender of the message.
      void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      Sets the properties.
      java.lang.String toString()
      Get the string rep.
      • Methods inherited from class java.lang.Object

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

      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
        Map containing properties.
    • Constructor Detail

      • MsgHeader

        public MsgHeader()
        Creates the header.
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.lang.String propertyname)
        Gets a property stored in the header.
        Specified by:
        getProperty in interface IMsgHeader
        Parameters:
        propertyname - The name of the property.
        Returns:
        Property value.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Gets the properties.
        Returns:
        The properties map.
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Sets the properties.
        Parameters:
        properties - The properties map.
      • addProperty

        public void addProperty​(java.lang.String propname,
                                java.lang.Object propval)
        Adds a header property to the header.
        Specified by:
        addProperty in interface IMsgHeader
        Parameters:
        propname - The property name.
        propval - The property value.
      • toString

        public java.lang.String toString()
        Get the string rep.
        Overrides:
        toString in class java.lang.Object