Class MessageBuilder

java.lang.Object
com.swiftmq.impl.streams.comp.message.MessageBuilder

public class MessageBuilder extends Object
Factory to create Message facades.

A Message facade wraps a JMS message and provides a more elegant builder-style access to it.

Author:
IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
  • Constructor Details

    • MessageBuilder

      public MessageBuilder(StreamContext ctx)
      Internal use only.
  • Method Details

    • copyMessage

      public Message copyMessage(Message msg) throws Exception
      Internal use only.
      Throws:
      Exception
    • message

      public Message message()
      Returns a new Message facade.
      Returns:
      Message facade
    • bytesMessage

      public BytesMessage bytesMessage()
      Returns a new BytesMessage facade.
      Returns:
      BytesMessage facade
    • textMessage

      public TextMessage textMessage()
      Returns a new TextMessage facade.
      Returns:
      TextMessage facade
    • streamMessage

      public StreamMessage streamMessage()
      Returns a new StreamMessage facade.
      Returns:
      StreamMessage facade
    • mapMessage

      public MapMessage mapMessage()
      Returns a new MapMessage facade.
      Returns:
      MapMessage facade
    • objectMessage

      public ObjectMessage objectMessage()
      Returns a new ObjectMessage facade.
      Returns:
      ObjectMessage facade
    • wrap

      public Message wrap(MessageImpl impl)
      Internal use only.