public class TextMessageImpl extends MessageImpl implements TextMessage
L, logDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
TextMessageImpl() |
TextMessageImpl(java.lang.String text) |
TextMessageImpl(TextMessage msg) |
TextMessageImpl(TextMessageImpl msg) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream.
|
void |
clearBody()
Clears the body.
|
MessageImpl |
copy() |
protected void |
copy(TextMessageImpl newMsg) |
java.lang.String |
getText()
Returns the message text.
|
MessageType |
getType()
Returns the type enumeration.
|
void |
readBody(java.io.InputStream is)
Read the body from an input stream.
|
void |
setText(java.lang.String text)
Returns the message text.
|
void |
writeBody(java.io.OutputStream os)
Serialize the body to an output stream.
|
acknowledge, checkBodyReadable, checkBodyWriteable, checkHeaderWriteable, checkPropertyWriteable, clearProperties, copy, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getProperties, getPropertyNames, getSequence, getShortProperty, getStringProperty, isReserved, propertiesToInputStream, propertyExists, readProperties, setBodyReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReceive, setSequence, setSession, setShortProperty, setStringProperty, toString, writePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertypublic TextMessageImpl()
public TextMessageImpl(java.lang.String text)
public TextMessageImpl(TextMessage msg) throws JMSException
JMSExceptionpublic TextMessageImpl(TextMessageImpl msg)
public MessageType getType()
getType in class MessageImplpublic java.lang.String getText()
throws JMSException
getText in interface TextMessageJMSExceptionpublic void setText(java.lang.String text)
throws JMSException
setText in interface TextMessageJMSExceptionpublic void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(TextMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOExceptionpublic void writeBody(java.io.OutputStream os)
throws java.io.IOException
writeBody in class MessageImpljava.io.IOExceptionpublic void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOExceptionJMSException