public class TextMessageImpl extends MessageImpl implements TextMessage
L, log
DEFAULT_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, writeProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acknowledge, 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, setStringProperty
public TextMessageImpl()
public TextMessageImpl(java.lang.String text)
public TextMessageImpl(TextMessage msg) throws JMSException
JMSException
public TextMessageImpl(TextMessageImpl msg)
public MessageType getType()
getType
in class MessageImpl
public java.lang.String getText() throws JMSException
getText
in interface TextMessage
JMSException
public void setText(java.lang.String text) throws JMSException
setText
in interface TextMessage
JMSException
public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class MessageImpl
JMSException
public MessageImpl copy()
copy
in class MessageImpl
protected void copy(TextMessageImpl newMsg)
public java.io.InputStream bodyToInputStream() throws java.io.IOException
bodyToInputStream
in class MessageImpl
java.io.IOException
public void writeBody(java.io.OutputStream os) throws java.io.IOException
writeBody
in class MessageImpl
java.io.IOException
public void readBody(java.io.InputStream is) throws java.io.IOException, JMSException
readBody
in class MessageImpl
java.io.IOException
JMSException