Package org.citrusframework.jms.message
Class JmsMessage
java.lang.Object
org.citrusframework.message.DefaultMessage
org.citrusframework.jms.message.JmsMessage
- All Implemented Interfaces:
Serializable,Message
- Since:
- 2.0
- Author:
- Christoph Deppisch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor initializing with empty message payload.JmsMessage(Object payload) Default constructor using message payload.JmsMessage(Message message) Constructs copy of given message. -
Method Summary
Modifier and TypeMethodDescriptioncorrelationId(String correlationId) Sets the JMS correlation id header.Gets the JMS correlationId header.Gets the JMS messageId header.Gets the JMS redelivered header.jakarta.jms.DestinationGets the JMS reply to header.Gets the JMS timestamp header.getType()Gets the JMS type header.Sets the JMS message id header.redelivered(String redelivered) Sets the JMS redelivered header.replyTo(jakarta.jms.Destination replyTo) Sets the JMS reply to header.Sets the JMS timestamp header.Sets the JMS type header.Methods inherited from class org.citrusframework.message.DefaultMessage
addHeaderData, getHeader, getHeaderData, getHeaders, getId, getName, getPayload, getPayload, removeHeader, setHeader, setName, setPayload, setType, setType, toString
-
Constructor Details
-
JmsMessage
public JmsMessage()Empty constructor initializing with empty message payload. -
JmsMessage
Constructs copy of given message.- Parameters:
message-
-
JmsMessage
Default constructor using message payload.- Parameters:
payload-
-
-
Method Details
-
messageId
Sets the JMS message id header.- Parameters:
messageId-
-
timestamp
Sets the JMS timestamp header.- Parameters:
timestamp-
-
correlationId
Sets the JMS correlation id header.- Parameters:
correlationId-
-
replyTo
Sets the JMS reply to header.- Parameters:
replyTo-
-
redelivered
Sets the JMS redelivered header.- Parameters:
redelivered-
-
type
Sets the JMS type header.- Parameters:
type-
-
getMessageId
Gets the JMS messageId header.- Returns:
-
getTimestamp
Gets the JMS timestamp header.- Overrides:
getTimestampin classDefaultMessage- Returns:
-
getCorrelationId
Gets the JMS correlationId header.- Returns:
-
getReplyTo
public jakarta.jms.Destination getReplyTo()Gets the JMS reply to header.- Returns:
-
getRedelivered
Gets the JMS redelivered header.- Returns:
-
getType
Gets the JMS type header.- Specified by:
getTypein interfaceMessage- Overrides:
getTypein classDefaultMessage- Returns:
-