|
||||||||||
| 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.activemq.command.Message |
|---|
Message.MessageDestination |
| Field Summary | |
|---|---|
static byte |
DATA_STRUCTURE_TYPE
|
protected String |
text
|
| Fields inherited from class org.apache.activemq.command.ActiveMQMessage |
|---|
acknowledgeCallback, DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY |
| Fields inherited from class org.apache.activemq.command.Message |
|---|
arrival, brokerInTime, brokerOutTime, compressed, content, correlationId, dataStructure, DEFAULT_MINIMUM_MESSAGE_SIZE, destination, droppable, expiration, groupID, groupSequence, marshalledProperties, messageId, ORIGINAL_EXPIRATION, 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. |
void |
clearMarshalledState()
|
Message |
copy()
|
byte |
getDataStructureType()
|
String |
getJMSXMimeType()
Returns the MIME type of this mesage. |
int |
getSize()
|
String |
getText()
|
void |
setText(String text)
|
void |
storeContent()
|
String |
toString()
|
| Methods inherited from class org.apache.activemq.command.BaseCommand |
|---|
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte DATA_STRUCTURE_TYPE
protected String text
| Constructor Detail |
|---|
public ActiveMQTextMessage()
| Method Detail |
|---|
public Message copy()
copy in class ActiveMQMessagepublic byte getDataStructureType()
getDataStructureType in interface DataStructuregetDataStructureType in class ActiveMQMessagepublic String getJMSXMimeType()
MessageBlobMessage
it allows you to create a selector on the MIME type of the BLOB body
getJMSXMimeType in class ActiveMQMessage
public void setText(String text)
throws MessageNotWriteableException
setText in interface TextMessageMessageNotWriteableException
public String getText()
throws JMSException
getText in interface TextMessageJMSException
public void beforeMarshall(WireFormat wireFormat)
throws IOException
beforeMarshall in interface MarshallAwarebeforeMarshall in class MessageIOExceptionpublic void storeContent()
storeContent in class ActiveMQMessage
public void clearMarshalledState()
throws JMSException
clearMarshalledState in class MessageJMSException
public void clearBody()
throws 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 MessageclearBody in class ActiveMQMessageJMSException - if the JMS provider fails to clear the message body
due to some internal error.public int getSize()
getSize in interface MessageReferencegetSize in class Messagepublic String toString()
toString in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||