activemq-cpp-3.9.5
|
#include <src/main/activemq/commands/ActiveMQTextMessage.h>
Public Member Functions | |
ActiveMQTextMessage () | |
virtual | ~ActiveMQTextMessage () throw () |
virtual unsigned char | getDataStructureType () const |
Get the DataStructure Type as defined in CommandTypes.h. | |
virtual ActiveMQTextMessage * | cloneDataStructure () const |
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one. | |
virtual void | copyDataStructure (const DataStructure *src) |
Copy the contents of the passed object into this objects members, overwriting any existing data. | |
virtual std::string | toString () const |
Returns a string containing the information for this DataStructure such as its type and value of its elements. | |
virtual bool | equals (const DataStructure *value) const |
Compares the DataStructure passed in to this one, and returns if they are equivalent. | |
virtual void | clearBody () |
Clears out the body of the message. | |
virtual void | beforeMarshal (wireformat::WireFormat *wireFormat) |
Called before marshaling is started to prepare the object to be marshaled. | |
virtual unsigned int | getSize () const |
Returns the Size of this message in Bytes. | |
virtual cms::TextMessage * | clone () const |
Clone this message exactly, returns a new instance that the caller is required to delete. | |
virtual std::string | getText () const |
Gets the message character buffer. | |
virtual void | setText (const char *msg) |
Sets the message contents, does not take ownership of the passed char*, but copies it instead. | |
virtual void | setText (const std::string &msg) |
Sets the message contents. | |
![]() | |
BaseCommand () | |
virtual | ~BaseCommand () |
virtual void | setCommandId (int id) |
Sets the Command Id of this Message. | |
virtual int | getCommandId () const |
Gets the Command Id of this Message. | |
virtual void | setResponseRequired (const bool required) |
Set if this Message requires a Response. | |
virtual bool | isResponseRequired () const |
Is a Response required for this Command. | |
virtual bool | isBrokerInfo () const |
virtual bool | isControlCommand () const |
virtual bool | isConnectionControl () const |
virtual bool | isConnectionError () const |
virtual bool | isConnectionInfo () const |
virtual bool | isConsumerInfo () const |
virtual bool | isConsumerControl () const |
virtual bool | isDestinationInfo () const |
virtual bool | isFlushCommand () const |
virtual bool | isMessageAck () const |
virtual bool | isMessagePull () const |
virtual bool | isKeepAliveInfo () const |
virtual bool | isMessageDispatch () const |
virtual bool | isMessageDispatchNotification () const |
virtual bool | isProducerAck () const |
virtual bool | isProducerInfo () const |
virtual bool | isResponse () const |
virtual bool | isRemoveInfo () const |
virtual bool | isRemoveSubscriptionInfo () const |
virtual bool | isReplayCommand () const |
virtual bool | isSessionInfo () const |
virtual bool | isShutdownInfo () const |
virtual bool | isTransactionInfo () const |
virtual bool | isWireFormatInfo () const |
![]() | |
virtual | ~Command () |
![]() | |
virtual | ~BaseDataStructure () |
virtual void | afterMarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | beforeUnmarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | setMarshaledForm (wireformat::WireFormat *wireFormat AMQCPP_UNUSED, const std::vector< char > &data AMQCPP_UNUSED) |
virtual std::vector< unsigned char > | getMarshaledForm (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | copyDataStructure (const DataStructure *src AMQCPP_UNUSED) |
virtual bool | equals (const DataStructure *value AMQCPP_UNUSED) const |
![]() | |
virtual | ~DataStructure () |
![]() | |
virtual | ~MarshalAware () |
virtual void | afterMarshal (WireFormat *wireFormat)=0 |
Called after marshaling is started to cleanup the object being marshaled. | |
virtual void | beforeUnmarshal (WireFormat *wireFormat)=0 |
Called before unmarshaling is started to prepare the object to be unmarshaled. | |
virtual void | afterUnmarshal (WireFormat *wireFormat)=0 |
Called after unmarshaling is started to cleanup the object being unmarshaled. | |
virtual void | setMarshaledForm (WireFormat *wireFormat, const std::vector< char > &data)=0 |
Called to set the data to this object that will contain the objects marshaled form. | |
virtual std::vector< unsigned char > | getMarshaledForm (WireFormat *wireFormat)=0 |
Called to get the data to this object that will contain the objects marshaled form. | |
Data Fields | |
std::auto_ptr< std::string > | text |
Static Public Attributes | |
static const unsigned char | ID_ACTIVEMQTEXTMESSAGE |
Additional Inherited Members | |
Defines the Type Identifiers used to identify the type contained within a specific Message property or MapMessage keyed value. More... |
activemq::commands::ActiveMQTextMessage::ActiveMQTextMessage | ( | ) |
|
virtual |
|
virtual |
Called before marshaling is started to prepare the object to be marshaled.
wireFormat | The wireformat object to control marshaling |
IOException | if an I/O error occurs. |
Implements activemq::wireformat::MarshalAware.
References beforeMarshal().
Referenced by beforeMarshal().
|
virtual |
Clears out the body of the message.
This does not clear the headers or properties.
CMSException | - if an internal error occurs. |
Reimplemented from activemq::commands::ActiveMQMessageTemplate< cms::TextMessage >.
References clearBody().
Referenced by clearBody().
|
virtual |
Clone this message exactly, returns a new instance that the caller is required to delete.
Implements cms::Message.
References clone(), and const.
Referenced by clone().
|
virtual |
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.
Reimplemented from activemq::commands::Message.
References cloneDataStructure(), and const.
Referenced by cloneDataStructure().
|
virtual |
Copy the contents of the passed object into this objects members, overwriting any existing data.
Reimplemented from activemq::commands::Message.
References const, and copyDataStructure().
Referenced by copyDataStructure().
|
virtual |
Compares the DataStructure passed in to this one, and returns if they are equivalent.
Equivalent here means that they are of the same type, and that each element of the objects are the same.
Reimplemented from activemq::commands::ActiveMQMessageTemplate< cms::TextMessage >.
References const, and equals().
Referenced by equals().
|
virtual |
Get the DataStructure Type as defined in CommandTypes.h.
Reimplemented from activemq::commands::Message.
References const, and getDataStructureType().
Referenced by getDataStructureType().
|
virtual |
Returns the Size of this message in Bytes.
Reimplemented from activemq::commands::Message.
References const, and getSize().
Referenced by getSize().
|
virtual |
Gets the message character buffer.
CMSException | - if an internal error occurs. |
Implements cms::TextMessage.
References const, and getText().
Referenced by getText().
|
virtual |
Sets the message contents, does not take ownership of the passed char*, but copies it instead.
msg | The message buffer. |
CMSException | - if an internal error occurs. |
MessageNotWriteableException | - if the message is in read-only mode.. |
Implements cms::TextMessage.
|
virtual |
Sets the message contents.
msg | The message buffer. |
CMSException | - if an internal error occurs. |
MessageNotWriteableException | - if the message is in read-only mode.. |
Implements cms::TextMessage.
|
virtual |
Returns a string containing the information for this DataStructure such as its type and value of its elements.
Reimplemented from activemq::commands::Message.
References const, and toString().
Referenced by toString().
|
static |
|
mutable |