| Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Representation of a message. More...
#include <qpid/messaging/Message.h>
Public Member Functions | |
| Message (const std::string &bytes=std::string()) | |
| Message (const char *, size_t) | |
| Message (const Message &) | |
| ~Message () | |
| Message & | operator= (const Message &) |
| void | setReplyTo (const Address &) |
| const Address & | getReplyTo () const |
| void | setSubject (const std::string &) |
| const std::string & | getSubject () const |
| void | setContentType (const std::string &) |
| const std::string & | getContentType () const |
| void | setMessageId (const std::string &) |
| const std::string & | getMessageId () const |
| void | setUserId (const std::string &) |
| const std::string & | getUserId () const |
| void | setCorrelationId (const std::string &) |
| const std::string & | getCorrelationId () const |
| void | setPriority (uint8_t) |
| uint8_t | getPriority () const |
| void | setTtl (Duration ttl) |
| Set the time to live for this message in milliseconds. | |
| Duration | getTtl () const |
| Get the time to live for this message in milliseconds. | |
| void | setDurable (bool durable) |
| bool | getDurable () const |
| bool | getRedelivered () const |
| void | setRedelivered (bool) |
| const qpid::types::Variant::Map & | getProperties () const |
| qpid::types::Variant::Map & | getProperties () |
| void | setContent (const std::string &) |
| void | setContent (const char *chars, size_t count) |
| Note that chars are copied. | |
| std::string | getContent () const |
| Get the content as a std::string. | |
| const char * | getContentPtr () const |
| Get a const pointer to the start of the content data. | |
| size_t | getContentSize () const |
| Get the size of content in bytes. | |
| void | setProperty (const std::string &, const qpid::types::Variant &) |
| qpid::messaging::Message::Message | ( | const std::string & | bytes = std::string() | ) |
| qpid::messaging::Message::Message | ( | const char * | , |
| size_t | |||
| ) |
| qpid::messaging::Message::Message | ( | const Message & | ) |
| std::string qpid::messaging::Message::getContent | ( | ) | const |
Get the content as a std::string.
| const char* qpid::messaging::Message::getContentPtr | ( | ) | const |
Get a const pointer to the start of the content data.
| size_t qpid::messaging::Message::getContentSize | ( | ) | const |
Get the size of content in bytes.
| const std::string& qpid::messaging::Message::getContentType | ( | ) | const |
| const std::string& qpid::messaging::Message::getCorrelationId | ( | ) | const |
| bool qpid::messaging::Message::getDurable | ( | ) | const |
| const std::string& qpid::messaging::Message::getMessageId | ( | ) | const |
| uint8_t qpid::messaging::Message::getPriority | ( | ) | const |
| const qpid::types::Variant::Map& qpid::messaging::Message::getProperties | ( | ) | const |
| bool qpid::messaging::Message::getRedelivered | ( | ) | const |
| const Address& qpid::messaging::Message::getReplyTo | ( | ) | const |
| const std::string& qpid::messaging::Message::getSubject | ( | ) | const |
| Duration qpid::messaging::Message::getTtl | ( | ) | const |
Get the time to live for this message in milliseconds.
| const std::string& qpid::messaging::Message::getUserId | ( | ) | const |
| void qpid::messaging::Message::setContent | ( | const std::string & | ) |
| void qpid::messaging::Message::setContent | ( | const char * | chars, |
| size_t | count | ||
| ) |
Note that chars are copied.
| void qpid::messaging::Message::setContentType | ( | const std::string & | ) |
| void qpid::messaging::Message::setCorrelationId | ( | const std::string & | ) |
| void qpid::messaging::Message::setDurable | ( | bool | durable | ) |
| void qpid::messaging::Message::setMessageId | ( | const std::string & | ) |
| void qpid::messaging::Message::setProperty | ( | const std::string & | , |
| const qpid::types::Variant & | |||
| ) |
| void qpid::messaging::Message::setRedelivered | ( | bool | ) |
| void qpid::messaging::Message::setReplyTo | ( | const Address & | ) |
| void qpid::messaging::Message::setSubject | ( | const std::string & | ) |
| void qpid::messaging::Message::setTtl | ( | Duration | ttl | ) |
Set the time to live for this message in milliseconds.
| void qpid::messaging::Message::setUserId | ( | const std::string & | ) |
1.7.6.1