|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A JMQXMLMessage
object is used to send a message
containing a org.w3c.dom.Document
. It inherits from
the TextMessage
interface and treats the text message
body as a document. Although a TextMessage
can be used
to send XML, this message provides a more convenient way of doing so.
When a consumer receives a JMQXMLMessage
, it is in
read-only mode. If a consumer attempts to write to the message at this
point, a MessageNotWriteableException
is thrown. If
clearBody
is called, the message can now be both read
from and written to.
Document
,
TextMessage
,
JMQSession
Field Summary |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Method Summary | |
Document |
getDocument()
Get the document containing this message's data. |
String |
getText()
Gets the string containing this message's data. |
void |
setDocument(Document document)
Set document as this message's data. |
void |
setText(String string)
Sets the string containing this message's data. |
Method Detail |
public void setText(String string) throws JMSException
setText
in interface TextMessage
string
- the String
containing the message's data
JMSException
- if the JMS provider fails to set the text due
to some internal error.
MessageNotWriteableException
- if the message is in read-only
mode.public String getText() throws JMSException
getText
in interface TextMessage
String
containing the message's data.
JMSException
- if the JMS provider fails to get the text due
to some internal error.public Document getDocument() throws JMSException
Document
containing the message's data.
JMSException
- if the JMS provider fails to get the text
due to some internal error.public void setDocument(Document document) throws JMSException
document
as this message's data. If a string was
previously set as the message's data, it will be replaced by the
document.
document
- the Document
containing the message's data.
JMSException
- if the JMS provider fails to set the document
due to some internal error.
MessageNotWriteableException
- if the message is in
read-only mode.
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |