Package jadex.bridge.component
Interface IMsgHeader
-
public interface IMsgHeader
Interface for message headers with meta information / link-level security.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONVERSATION_ID
Message header key for conversation IDs (optional).static java.lang.String
RECEIVER
Message header key for the receiver.static java.lang.String
SENDER
Message header key for the sender.static java.lang.String
XID
Message header key for internal message id (optional).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProperty(java.lang.String propname, java.lang.Object propval)
Adds a header property to the header.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.
-
-
-
Field Detail
-
SENDER
static final java.lang.String SENDER
Message header key for the sender.- See Also:
- Constant Field Values
-
RECEIVER
static final java.lang.String RECEIVER
Message header key for the receiver.- See Also:
- Constant Field Values
-
CONVERSATION_ID
static final java.lang.String CONVERSATION_ID
Message header key for conversation IDs (optional).- See Also:
- Constant Field Values
-
XID
static final java.lang.String XID
Message header key for internal message id (optional). Added automatically when monitoring is active on sender side.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSender
IComponentIdentifier getSender()
Gets the sender of the message.- Returns:
- The sender.
-
getReceiver
IComponentIdentifier getReceiver()
Gets the receiver of the message.- Returns:
- The receiver.
-
getProperty
java.lang.Object getProperty(java.lang.String propertyname)
Gets a property stored in the header.- Parameters:
propertyname
-- Returns:
-
addProperty
void addProperty(java.lang.String propname, java.lang.Object propval)
Adds a header property to the header.- Parameters:
propname
- The property name.propval
- The property value.
-
-