public class ReceivedMessage extends Object implements Serializable
Constructor and Description |
---|
ReceivedMessage(Serializable response,
MessageTemplate sentMessageTemplate,
Message sentMessage,
Properties messageAttributes)
Creates a new received message container.
|
Modifier and Type | Method and Description |
---|---|
Properties |
getMessageAttributes()
Gets the snapshot of sequence' values and possible other attributes used for sending a message.
|
Serializable |
getResponse()
Gets the stored response.
|
Message |
getSentMessage()
Gets the sent message with the placeholders filled with values.
|
MessageTemplate |
getSentMessageTemplate()
Gets the original message template.
|
public ReceivedMessage(Serializable response, MessageTemplate sentMessageTemplate, Message sentMessage, Properties messageAttributes)
response
- The received response payload.sentMessageTemplate
- The original message template.sentMessage
- The real message sent with the placeholders filled with values.messageAttributes
- The message payload placeholder values based on the current state of sequences in the SequenceManager
.public Serializable getResponse()
public MessageTemplate getSentMessageTemplate()
public Message getSentMessage()
public Properties getMessageAttributes()
Copyright © 2010–2017 PerfCake Community. All rights reserved.