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

A representation of messages for sent or recived through the client api. More...

#include <ClientMessage.h>

List of all members.

Public Member Functions

std::string getData ()
 Allows the application to access the content of messages received.
void setData (const std::string &_data)
 Allows the application to set the content of messages to be sent.
bool isRedelivered ()
 
Returns:
true if this message was delivered previously (to any consumer) but was not acknowledged.

void setRedelivered (bool _redelivered)
u_int64_t getDeliveryTag ()
const std::string & getContentType ()
const std::string & getContentEncoding ()
qpid::framing::FieldTablegetHeaders ()
u_int8_t getDeliveryMode ()
u_int8_t getPriority ()
const std::string & getCorrelationId ()
const std::string & getReplyTo ()
const std::string & getExpiration ()
const std::string & getMessageId ()
u_int64_t getTimestamp ()
const std::string & getType ()
const std::string & getUserId ()
const std::string & getAppId ()
const std::string & getClusterId ()
void setContentType (const std::string &type)
void setContentEncoding (const std::string &encoding)
void setHeaders (const qpid::framing::FieldTable &headers)
void setDeliveryMode (u_int8_t mode)
 Sets the delivery mode.
void setPriority (u_int8_t priority)
void setCorrelationId (const std::string &correlationId)
void setReplyTo (const std::string &replyTo)
void setExpiration (const std::string &expiration)
void setMessageId (const std::string &messageId)
void setTimestamp (u_int64_t timestamp)
void setType (const std::string &type)
void setUserId (const std::string &userId)
void setAppId (const std::string &appId)
void setClusterId (const std::string &clusterId)


Detailed Description

A representation of messages for sent or recived through the client api.


Member Function Documentation

std::string qpid::client::Message::getData (  )  [inline]

Allows the application to access the content of messages received.

Returns:
a string representing the data of the message

void qpid::client::Message::setData ( const std::string &  _data  )  [inline]

Allows the application to set the content of messages to be sent.

Parameters:
data a string representing the data of the message

void qpid::client::Message::setDeliveryMode ( u_int8_t  mode  ) 

Sets the delivery mode.

1 = non-durable, 2 = durable.


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 19:13:17 2007 for Qpid by  doxygen 1.5.1