Class JmsMessage

java.lang.Object
org.citrusframework.message.DefaultMessage
org.citrusframework.jms.message.JmsMessage
All Implemented Interfaces:
Serializable, Message

public class JmsMessage extends DefaultMessage
Since:
2.0
Author:
Christoph Deppisch
See Also:
  • Constructor Details

    • JmsMessage

      public JmsMessage()
      Empty constructor initializing with empty message payload.
    • JmsMessage

      public JmsMessage(Message message)
      Constructs copy of given message.
      Parameters:
      message -
    • JmsMessage

      public JmsMessage(Object payload)
      Default constructor using message payload.
      Parameters:
      payload -
  • Method Details

    • messageId

      public JmsMessage messageId(String messageId)
      Sets the JMS message id header.
      Parameters:
      messageId -
    • timestamp

      public JmsMessage timestamp(Long timestamp)
      Sets the JMS timestamp header.
      Parameters:
      timestamp -
    • correlationId

      public JmsMessage correlationId(String correlationId)
      Sets the JMS correlation id header.
      Parameters:
      correlationId -
    • replyTo

      public JmsMessage replyTo(jakarta.jms.Destination replyTo)
      Sets the JMS reply to header.
      Parameters:
      replyTo -
    • redelivered

      public JmsMessage redelivered(String redelivered)
      Sets the JMS redelivered header.
      Parameters:
      redelivered -
    • type

      public JmsMessage type(String type)
      Sets the JMS type header.
      Parameters:
      type -
    • getMessageId

      public String getMessageId()
      Gets the JMS messageId header.
      Returns:
    • getTimestamp

      public Long getTimestamp()
      Gets the JMS timestamp header.
      Overrides:
      getTimestamp in class DefaultMessage
      Returns:
    • getCorrelationId

      public String getCorrelationId()
      Gets the JMS correlationId header.
      Returns:
    • getReplyTo

      public jakarta.jms.Destination getReplyTo()
      Gets the JMS reply to header.
      Returns:
    • getRedelivered

      public String getRedelivered()
      Gets the JMS redelivered header.
      Returns:
    • getType

      public String getType()
      Gets the JMS type header.
      Specified by:
      getType in interface Message
      Overrides:
      getType in class DefaultMessage
      Returns: