|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.message.MessageImpl | +--org.exolab.jms.message.TextMessageImpl
This class implements the javax.jms.TextMessage
interface
TextMessage
, Serialized FormFields inherited from class org.exolab.jms.message.MessageImpl |
_acceptedTime, _bodyReadOnly, _connectionId, _processed, _propertiesReadOnly, _sequenceNumber, EMPTY |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
TextMessageImpl()
Construct a new TextMessage |
Method Summary | |
void |
clearBody()
Clear out the message body. |
java.lang.Object |
clone()
Clone an instance of this object |
java.lang.String |
getText()
Get the string containing this message's data. |
void |
readExternal(java.io.ObjectInput in)
Serialize in this message's data |
void |
setText(java.lang.String string)
Set the string containing this message's data. |
java.lang.String |
toString()
Returns the message text |
void |
writeExternal(java.io.ObjectOutput out)
Serialize out this message's data |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Message |
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 |
Constructor Detail |
public TextMessageImpl() throws javax.jms.JMSException
javax.jms.JMSException
- if the message type can't be setMethod Detail |
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class MessageImpl
java.lang.CloneNotSupportedException
- if object or attributes aren't
cloneablepublic final void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in class MessageImpl
out
- the stream to serialize out tojava.io.IOException
- if any I/O exceptions occurrpublic final void readExternal(java.io.ObjectInput in) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in class MessageImpl
in
- the stream to serialize in fromjava.lang.ClassNotFoundException
- if the class for an object being
restored cannot be found.java.io.IOException
- if any I/O exceptions occurpublic final void setText(java.lang.String string) throws javax.jms.MessageNotWriteableException
setText
in interface javax.jms.TextMessage
string
- the String containing the message's datajavax.jms.MessageNotWriteableException
- if message in read-only mode.public final java.lang.String getText()
getText
in interface javax.jms.TextMessage
public final void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class MessageImpl
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |