Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <MessageImpl.h>
Public Member Functions | |
MessageImpl (const std::string &data=std::string(), const std::string &routingKey=std::string()) | |
Create a Message. | |
std::string | getDestination () const |
The destination of messages sent to the broker is the exchange name. | |
bool | isRedelivered () const |
Check the redelivered flag. | |
void | setRedelivered (bool redelivered) |
Set the redelivered flag. | |
framing::FieldTable & | getHeaders () |
Get a modifyable reference to the message headers. | |
const framing::FieldTable & | getHeaders () const |
Get a non-modifyable reference to the message headers. | |
const framing::MessageTransferBody & | getMethod () const |
const framing::SequenceNumber & | getId () const |
MessageImpl (const framing::FrameSet &frameset) | |
AMQHeaderBody | getHeader () const |
void | setData (const std::string &) |
const std::string & | getData () const |
std::string & | getData () |
void | appendData (const std::string &) |
bool | hasMessageProperties () const |
MessageProperties & | getMessageProperties () |
const MessageProperties & | getMessageProperties () const |
bool | hasDeliveryProperties () const |
DeliveryProperties & | getDeliveryProperties () |
const DeliveryProperties & | getDeliveryProperties () const |
void | populate (const FrameSet &frameset) |
Static Public Member Functions | |
static MessageImpl * | get (Message &m) |
static const MessageImpl * | get (const Message &m) |
Definition at line 33 of file MessageImpl.h.
qpid::client::MessageImpl::MessageImpl | ( | const std::string & | data = std::string() , |
|
const std::string & | routingKey = std::string() | |||
) |
Create a Message.
data | Data for the message body. | |
routingKey | Passed to the exchange that routes the message. |
qpid::client::MessageImpl::MessageImpl | ( | const framing::FrameSet & | frameset | ) |
void qpid::framing::TransferContent::appendData | ( | const std::string & | ) | [inherited] |
static const MessageImpl* qpid::client::MessageImpl::get | ( | const Message & | m | ) | [inline, static] |
Definition at line 70 of file MessageImpl.h.
static MessageImpl* qpid::client::MessageImpl::get | ( | Message & | m | ) | [inline, static] |
Definition at line 69 of file MessageImpl.h.
std::string& qpid::framing::TransferContent::getData | ( | ) | [inherited] |
const std::string& qpid::framing::TransferContent::getData | ( | ) | const [virtual, inherited] |
Implements qpid::framing::MethodContent.
const DeliveryProperties& qpid::framing::TransferContent::getDeliveryProperties | ( | ) | const [inherited] |
DeliveryProperties& qpid::framing::TransferContent::getDeliveryProperties | ( | ) | [inherited] |
std::string qpid::client::MessageImpl::getDestination | ( | ) | const |
The destination of messages sent to the broker is the exchange name.
The destination of messages received from the broker is the delivery tag identifyig the local subscription (often this is the name of the subscribed queue.)
AMQHeaderBody qpid::framing::TransferContent::getHeader | ( | ) | const [virtual, inherited] |
Implements qpid::framing::MethodContent.
const framing::FieldTable& qpid::client::MessageImpl::getHeaders | ( | ) | const |
Get a non-modifyable reference to the message headers.
framing::FieldTable& qpid::client::MessageImpl::getHeaders | ( | ) |
Get a modifyable reference to the message headers.
const framing::SequenceNumber& qpid::client::MessageImpl::getId | ( | ) | const |
const MessageProperties& qpid::framing::TransferContent::getMessageProperties | ( | ) | const [inherited] |
MessageProperties& qpid::framing::TransferContent::getMessageProperties | ( | ) | [inherited] |
const framing::MessageTransferBody& qpid::client::MessageImpl::getMethod | ( | ) | const |
bool qpid::framing::TransferContent::hasDeliveryProperties | ( | ) | const [inherited] |
bool qpid::framing::TransferContent::hasMessageProperties | ( | ) | const [inherited] |
bool qpid::client::MessageImpl::isRedelivered | ( | ) | const |
Check the redelivered flag.
void qpid::framing::TransferContent::populate | ( | const FrameSet & | frameset | ) | [inherited] |
void qpid::framing::TransferContent::setData | ( | const std::string & | ) | [inherited] |
void qpid::client::MessageImpl::setRedelivered | ( | bool | redelivered | ) |
Set the redelivered flag.