diff options
author | Gordon Sim <gsim@apache.org> | 2010-01-12 12:02:38 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-01-12 12:02:38 +0000 |
commit | f47385682d2e9a82d007481e2c6d171a68dffa5f (patch) | |
tree | 272cc16ac4b05ce23aab1dd22fcd751c8dd6f3db /cpp/src/qpid/messaging/Message.cpp | |
parent | 0528688ee4f8831b05576e2448d0835d6375ee82 (diff) | |
download | qpid-python-f47385682d2e9a82d007481e2c6d171a68dffa5f.tar.gz |
QPID-664: Added some of the missing standard message headers. Added two new test utilities for sending and receiving with the new API (both still works in progress).
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898296 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/Message.cpp')
-rw-r--r-- | cpp/src/qpid/messaging/Message.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/Message.cpp b/cpp/src/qpid/messaging/Message.cpp index deb40b6aa3..e4b28c3b2c 100644 --- a/cpp/src/qpid/messaging/Message.cpp +++ b/cpp/src/qpid/messaging/Message.cpp @@ -41,6 +41,23 @@ const std::string& Message::getSubject() const { return impl->getSubject(); } void Message::setContentType(const std::string& s) { impl->setContentType(s); } const std::string& Message::getContentType() const { return impl->getContentType(); } +void Message::setMessageId(const std::string& id) { impl->messageId = id; } +const std::string& Message::getMessageId() const { return impl->messageId; } + +void Message::setUserId(const std::string& id) { impl->userId = id; } +const std::string& Message::getUserId() const { return impl->userId; } + +void Message::setCorrelationId(const std::string& id) { impl->correlationId = id; } +const std::string& Message::getCorrelationId() const { return impl->correlationId; } + +void Message::setTtl(uint64_t ttl) { impl->ttl = ttl; } +uint64_t Message::getTtl() const { return impl->ttl; } + +void Message::setDurable(bool durable) { impl->durable = durable; } +bool Message::getDurable() const { return impl->durable; } + +bool Message::isRedelivered() const { return impl->redelivered; } + const VariantMap& Message::getHeaders() const { return impl->getHeaders(); } VariantMap& Message::getHeaders() { return impl->getHeaders(); } |