|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.command.BaseCommand
org.apache.activemq.command.Message
org.apache.activemq.command.ActiveMQMessage
org.apache.activemq.command.ActiveMQTextMessage
public class ActiveMQTextMessage
Field Summary | |
---|---|
static byte |
DATA_STRUCTURE_TYPE
|
protected java.lang.String |
text
|
Fields inherited from class org.apache.activemq.command.ActiveMQMessage |
---|
acknowledgeCallback |
Fields inherited from class org.apache.activemq.command.Message |
---|
arrival, AVERAGE_MESSAGE_SIZE_OVERHEAD, compressed, content, correlationId, dataStructure, destination, droppable, expiration, groupID, groupSequence, marshalledProperties, messageId, originalDestination, originalTransactionId, persistent, priority, producerId, properties, readOnlyBody, readOnlyProperties, recievedByDFBridge, redeliveryCounter, replyTo, size, targetConsumerId, timestamp, transactionId, type, userID |
Fields inherited from class org.apache.activemq.command.BaseCommand |
---|
commandId, responseRequired |
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
---|---|
ActiveMQTextMessage()
|
Method Summary | |
---|---|
void |
beforeMarshall(WireFormat wireFormat)
|
void |
clearBody()
Clears out the message body. |
Message |
copy()
|
byte |
getDataStructureType()
|
int |
getSize()
|
java.lang.String |
getText()
|
void |
setText(java.lang.String text)
|
Methods inherited from class org.apache.activemq.command.BaseCommand |
---|
copy, getCommandId, getFrom, getTo, isBrokerInfo, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, 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 |
Field Detail |
---|
public static final byte DATA_STRUCTURE_TYPE
protected java.lang.String text
Constructor Detail |
---|
public ActiveMQTextMessage()
Method Detail |
---|
public Message copy()
copy
in class ActiveMQMessage
public byte getDataStructureType()
getDataStructureType
in interface DataStructure
getDataStructureType
in class ActiveMQMessage
public void setText(java.lang.String text) throws javax.jms.MessageNotWriteableException
setText
in interface javax.jms.TextMessage
javax.jms.MessageNotWriteableException
public java.lang.String getText() throws javax.jms.JMSException
getText
in interface javax.jms.TextMessage
javax.jms.JMSException
public void beforeMarshall(WireFormat wireFormat) throws java.io.IOException
beforeMarshall
in interface MarshallAware
beforeMarshall
in class Message
java.io.IOException
public void clearBody() throws javax.jms.JMSException
If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.
clearBody
in interface javax.jms.Message
clearBody
in class ActiveMQMessage
javax.jms.JMSException
- if the JMS provider fails to clear the message body due to some internal error.public int getSize()
getSize
in interface MessageReference
getSize
in class Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |