public class ImmutableMessage extends Message
MutableMessage objects will be converted to ImmutableMessage objects before they
are handed over to a sub-class of AbstractMessageRouter.
It's not possible to modify a immutable message any more because the content may be signed.Message.MessageType| Modifier and Type | Field and Description |
|---|---|
static String |
DUMMY_CREATOR_USER_ID |
CUSTOM_HEADER_GBID_KEY, CUSTOM_HEADER_PREFIX, CUSTOM_HEADER_REQUEST_REPLY_ID, HEADER_EFFORT, HEADER_ID, HEADER_MSG_TYPE, HEADER_REPLY_TO| Constructor and Description |
|---|
ImmutableMessage(byte[] serializedMessage) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Serializable> |
getContext() |
String |
getCreatorUserId() |
Map<String,String> |
getCustomHeaders() |
String |
getEffort() |
Map<String,String> |
getHeaders() |
String |
getId() |
int |
getMessageSize() |
String |
getRecipient() |
String |
getReplyTo() |
String |
getSender() |
byte[] |
getSerializedMessage() |
String |
getTrackingInfo() |
long |
getTtlMs() |
Message.MessageType |
getType() |
byte[] |
getUnencryptedBody() |
boolean |
isCompressed() |
boolean |
isEncrypted() |
boolean |
isMessageProcessed() |
boolean |
isReceivedFromGlobal() |
boolean |
isReply() |
boolean |
isSigned() |
boolean |
isTtlAbsolute() |
void |
messageProcessed() |
void |
setContext(HashMap<String,Serializable> context) |
void |
setReceivedFromGlobal(boolean receivedFromGlobal) |
String |
toLogMessage() |
String |
toString() |
isLocalMessage, setLocalMessagepublic static final String DUMMY_CREATOR_USER_ID
public ImmutableMessage(byte[] serializedMessage)
throws io.joynr.smrf.EncodingException,
io.joynr.smrf.UnsuppportedVersionException
public byte[] getSerializedMessage()
public long getTtlMs()
public boolean isTtlAbsolute()
public String getSender()
public String getRecipient()
public String getReplyTo()
public Message.MessageType getType()
public String getEffort()
public String getCreatorUserId()
public byte[] getUnencryptedBody()
throws io.joynr.smrf.EncodingException
io.joynr.smrf.EncodingExceptionpublic void setContext(HashMap<String,Serializable> context)
public Map<String,Serializable> getContext()
public void setReceivedFromGlobal(boolean receivedFromGlobal)
public boolean isReceivedFromGlobal()
public void messageProcessed()
public boolean isMessageProcessed()
public String getId()
public boolean isEncrypted()
public boolean isSigned()
public boolean isCompressed()
public int getMessageSize()
public String toLogMessage()
public boolean isReply()
public String getTrackingInfo()
Copyright © 2021. All rights reserved.