Package joynr
Class ImmutableMessage
- java.lang.Object
-
- joynr.Message
-
- joynr.ImmutableMessage
-
public class ImmutableMessage extends Message
This class wraps binary SMRF messages and provides access to the serialized attributes of the message. This type is mainly used by the messaging layers and the message router.MutableMessageobjects will be converted to ImmutableMessage objects before they are handed over to a sub-class ofMessageRouter. It's not possible to modify a immutable message any more because the content may be signed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class joynr.Message
Message.MessageType
-
-
Field Summary
Fields Modifier and Type Field Description static StringDUMMY_CREATOR_USER_ID-
Fields inherited from class joynr.Message
CUSTOM_HEADER_GBID_KEY, CUSTOM_HEADER_PREFIX, CUSTOM_HEADER_REQUEST_REPLY_ID, HEADER_EFFORT, HEADER_ID, HEADER_MSG_TYPE, HEADER_REPLY_TO
-
-
Constructor Summary
Constructors Constructor Description ImmutableMessage(byte[] serializedMessage)
-
Method Summary
-
Methods inherited from class joynr.Message
isLocalMessage, setLocalMessage
-
-
-
-
Field Detail
-
DUMMY_CREATOR_USER_ID
public static final String DUMMY_CREATOR_USER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPrefixedExtraCustomHeaders
public void setPrefixedExtraCustomHeaders(Map<String,String> prefixedCustomHeaders)
-
getSerializedMessage
public byte[] getSerializedMessage()
-
getTtlMs
public long getTtlMs()
-
isTtlAbsolute
public boolean isTtlAbsolute()
-
getSender
public String getSender()
-
getRecipient
public String getRecipient()
-
getReplyTo
public String getReplyTo()
-
getType
public Message.MessageType getType()
-
getEffort
public String getEffort()
-
setCreatorUserId
public void setCreatorUserId(String userId)
-
getCreatorUserId
public String getCreatorUserId()
-
getUnencryptedBody
public byte[] getUnencryptedBody() throws io.joynr.smrf.EncodingException- Throws:
io.joynr.smrf.EncodingException
-
setContext
public void setContext(HashMap<String,Serializable> context)
-
getContext
public Map<String,Serializable> getContext()
-
setReceivedFromGlobal
public void setReceivedFromGlobal(boolean receivedFromGlobal)
-
isReceivedFromGlobal
public boolean isReceivedFromGlobal()
-
messageProcessed
public void messageProcessed()
-
isMessageProcessed
public boolean isMessageProcessed()
-
getId
public String getId()
-
isEncrypted
public boolean isEncrypted()
-
isSigned
public boolean isSigned()
-
isCompressed
public boolean isCompressed()
-
getMessageSize
public int getMessageSize()
-
toLogMessage
public String toLogMessage()
-
isReply
public boolean isReply()
-
getTrackingInfo
public String getTrackingInfo()
-
-