qpid::client::Message Class Reference
[Application API for an AMQP client.]

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

#include <Message.h>

Inheritance diagram for qpid::client::Message:

Inheritance graph
[legend]
Collaboration diagram for qpid::client::Message:

Collaboration graph
[legend]

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::MessageTransferBody & 
getMethod () const
const framing::SequenceNumbergetId () const
 Message (const framing::FrameSet &frameset)


Detailed Description

A message sent to or received from the broker.

Definition at line 37 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.


Member Function Documentation

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.)

bool qpid::client::Message::isRedelivered (  )  const

Check the redelivered flag.

void qpid::client::Message::setRedelivered ( bool  redelivered  ) 

Set the redelivered flag.

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

Get a modifyable reference to the message headers.

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

Get a non-modifyable reference to the message headers.


The documentation for this class was generated from the following file:

Generated on Thu Oct 16 13:38:20 2008 for Qpid by  doxygen 1.5.6