Package joynr

Class 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. MutableMessage objects will be converted to ImmutableMessage objects before they are handed over to a sub-class of MessageRouter. It's not possible to modify a immutable message any more because the content may be signed.
    • Constructor Detail

      • ImmutableMessage

        public ImmutableMessage​(byte[] serializedMessage)
                         throws io.joynr.smrf.EncodingException,
                                io.joynr.smrf.UnsuppportedVersionException
        Throws:
        io.joynr.smrf.EncodingException
        io.joynr.smrf.UnsuppportedVersionException
    • Method Detail

      • setPrefixedExtraCustomHeaders

        public void setPrefixedExtraCustomHeaders​(Map<String,​String> prefixedCustomHeaders)
      • setExtraCustomHeaders

        public void setExtraCustomHeaders​(Map<String,​String> customHeaders)
      • getExtraCustomHeaders

        public Map<String,​String> getExtraCustomHeaders()
      • getSerializedMessage

        public byte[] getSerializedMessage()
      • getTtlMs

        public long getTtlMs()
      • isTtlAbsolute

        public boolean isTtlAbsolute()
      • getSender

        public String getSender()
      • getRecipient

        public String getRecipient()
      • getReplyTo

        public String getReplyTo()
      • 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
      • getPrefixedCustomHeaders

        public Map<String,​String> getPrefixedCustomHeaders()
      • 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()