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

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

Representation of a message. More...

#include <qpid/messaging/Message.h>

List of all members.

Public Member Functions

 Message (const std::string &bytes=std::string())
 Message (const char *, size_t)
 Message (const Message &)
 ~Message ()
Messageoperator= (const Message &)
void setReplyTo (const Address &)
const AddressgetReplyTo () 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::MapgetProperties () const
qpid::types::Variant::MapgetProperties ()
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.

Detailed Description

Representation of a message.

Definition at line 42 of file Message.h.


Constructor & Destructor Documentation

qpid::messaging::Message::Message ( const std::string &  bytes = std::string()  ) 
qpid::messaging::Message::Message ( const char *  ,
size_t   
)
qpid::messaging::Message::Message ( const Message  ) 
qpid::messaging::Message::~Message (  ) 

Member Function Documentation

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
qpid::types::Variant::Map& qpid::messaging::Message::getProperties (  ) 
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
Message& qpid::messaging::Message::operator= ( const Message  ) 
void qpid::messaging::Message::setContent ( const char *  chars,
size_t  count 
)

Note that chars are copied.

void qpid::messaging::Message::setContent ( const std::string &   ) 
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::setPriority ( uint8_t   ) 
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 &   ) 

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

Qpid C++ API Reference
Generated on Mon Jun 7 17:49:09 2010 for Qpid C++ Client API by doxygen 1.6.2-20100208