public class MessageFactory
extends java.lang.Object
Constructor and Description |
---|
MessageFactory() |
Modifier and Type | Method and Description |
---|---|
MessageImpl |
copy(Message msg)
Copy the message.
|
MessageImpl |
createMessage(int type)
Creates a message based on the type.
|
TextMessage |
createTextMessage()
Creates a new JMS text message.
|
TextMessage |
createTextMessage(java.lang.String msg)
Creates a new JMS text message.
|
MessageType |
getMessageType(Message msg)
Returns the message type.
|
java.io.InputStream |
headerToInputStream(Message msg)
Creates an input stream from the header.
|
void |
writeHeader(WriteStream out,
Message msg) |
public TextMessage createTextMessage()
public TextMessage createTextMessage(java.lang.String msg) throws JMSException
msg
- initial message textJMSException
public MessageType getMessageType(Message msg)
public MessageImpl createMessage(int type)
public MessageImpl copy(Message msg) throws JMSException
JMSException
public java.io.InputStream headerToInputStream(Message msg)
public void writeHeader(WriteStream out, Message msg)