Class MessageBuilder
java.lang.Object
com.swiftmq.impl.streams.comp.message.MessageBuilder
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new BytesMessage facade.copyMessage
(Message msg) Internal use only.Returns a new MapMessage facade.message()
Returns a new Message facade.Returns a new ObjectMessage facade.Returns a new StreamMessage facade.Returns a new TextMessage facade.wrap
(MessageImpl impl) Internal use only.
-
Constructor Details
-
MessageBuilder
Internal use only.
-
-
Method Details
-
copyMessage
Internal use only.- Throws:
Exception
-
message
Returns a new Message facade.- Returns:
- Message facade
-
bytesMessage
Returns a new BytesMessage facade.- Returns:
- BytesMessage facade
-
textMessage
Returns a new TextMessage facade.- Returns:
- TextMessage facade
-
streamMessage
Returns a new StreamMessage facade.- Returns:
- StreamMessage facade
-
mapMessage
Returns a new MapMessage facade.- Returns:
- MapMessage facade
-
objectMessage
Returns a new ObjectMessage facade.- Returns:
- ObjectMessage facade
-
wrap
Internal use only.
-