|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.jms.message.MessageFactory
public class MessageFactory
A message factory
Constructor Summary | |
---|---|
MessageFactory()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageFactory()
Method Detail |
---|
public TextMessage createTextMessage()
public TextMessage createTextMessage(java.lang.String msg) throws JMSException
msg
- initial message text
JMSException
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |