Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

qpid::client::Message Class Reference
[Qpid C++ Client API]

A message sent to or received from the broker. More...

#include <Message.h>

Inherits qpid::framing::TransferContent.

List of all members.

Public Member Functions

 Message (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::FieldTablegetHeaders ()
 Get a modifyable reference to the message headers.
const framing::FieldTablegetHeaders () const
 Get a non-modifyable reference to the message headers.
const framing::MessageTransferBodygetMethod () const
const framing::SequenceNumbergetId () const
 Message (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)


Detailed Description

A message sent to or received from the broker.

Getting and setting message contents

Getting and Setting Delivery Properties

Getting and Setting Message Properties

Getting and Setting Application Headers

Definition at line 107 of file Message.h.


Constructor & Destructor Documentation

qpid::client::Message::Message ( const std::string &  data = std::string(),
const std::string &  routingKey = std::string() 
)

Create a Message.

Parameters:
data Data for the message body.
routingKey Passed to the exchange that routes the message.

qpid::client::Message::Message ( const framing::FrameSet frameset  ) 


Member Function Documentation

void qpid::framing::TransferContent::appendData ( const std::string &   )  [inherited]

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::Message::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::Message::getHeaders (  )  const

Get a non-modifyable reference to the message headers.

framing::FieldTable& qpid::client::Message::getHeaders (  ) 

Get a modifyable reference to the message headers.

const framing::SequenceNumber& qpid::client::Message::getId (  )  const

Referenced by qpid::client::Subscription::accept(), qpid::client::Subscription::acquire(), and qpid::client::Subscription::release().

const MessageProperties& qpid::framing::TransferContent::getMessageProperties (  )  const [inherited]

MessageProperties& qpid::framing::TransferContent::getMessageProperties (  )  [inherited]

const framing::MessageTransferBody& qpid::client::Message::getMethod (  )  const

bool qpid::framing::TransferContent::hasDeliveryProperties (  )  const [inherited]

bool qpid::framing::TransferContent::hasMessageProperties (  )  const [inherited]

bool qpid::client::Message::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::Message::setRedelivered ( bool  redelivered  ) 

Set the redelivered flag.


The documentation for this class was generated from the following file:
Qpid C++ API Reference
Generated on Tue Dec 8 15:39:37 2009 for Qpid C++ Client API by doxygen 1.4.7