Class JmsMessage

  • All Implemented Interfaces:
    com.consol.citrus.message.Message, Serializable

    public class JmsMessage
    extends com.consol.citrus.message.DefaultMessage
    Since:
    2.0
    Author:
    Christoph Deppisch
    See Also:
    Serialized Form
    • Constructor Detail

      • JmsMessage

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

        public JmsMessage​(com.consol.citrus.message.Message message)
        Constructs copy of given message.
        Parameters:
        message -
      • JmsMessage

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

      • 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​(javax.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 com.consol.citrus.message.DefaultMessage
        Returns:
      • getCorrelationId

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

        public javax.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 com.consol.citrus.message.Message
        Overrides:
        getType in class com.consol.citrus.message.DefaultMessage
        Returns: