Package jadex.serialization
Interface IMsgHeader
- All Known Implementing Classes:
MsgHeader
public interface IMsgHeader
Interface for message headers with meta information / link-level security.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String propname, Object propval) Adds a header property to the header.getProperty
(String propertyname) Gets a property stored in the header.jadex.core.ComponentIdentifier
Gets the receiver of the message.jadex.core.ComponentIdentifier
Gets the sender of the message.
-
Field Details
-
SENDER
Message header key for the sender.- See Also:
-
RECEIVER
Message header key for the receiver.- See Also:
-
CONVERSATION_ID
Message header key for conversation IDs (optional).- See Also:
-
XID
Message header key for internal message id (optional). Added automatically when monitoring is active on sender side.- See Also:
-
-
Method Details
-
getSender
jadex.core.ComponentIdentifier getSender()Gets the sender of the message.- Returns:
- The sender.
-
getReceiver
jadex.core.ComponentIdentifier getReceiver()Gets the receiver of the message.- Returns:
- The receiver.
-
getProperty
Gets a property stored in the header.- Parameters:
propertyname
-- Returns:
-
addProperty
Adds a header property to the header.- Parameters:
propname
- The property name.propval
- The property value.
-