summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/BrokerMessageBase.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-02-06 21:38:30 +0000
committerAlan Conway <aconway@apache.org>2007-02-06 21:38:30 +0000
commit877e7ae368d4320bd60ba5750be207a5cac13f43 (patch)
tree9f0777c5e6069b537e13d1c1f88cc08560f47de3 /cpp/lib/broker/BrokerMessageBase.h
parenta0c19714ccb547c401e598189a36573ac750e809 (diff)
downloadqpid-python-877e7ae368d4320bd60ba5750be207a5cac13f43.tar.gz
* cpp/lib/broker/BrokerQueue.cpp (): Centralized exceptions.
* cpp/lib/broker/BrokerAdapter.cpp (consume): Moved exceptions to Queue * cpp/lib/broker/BrokerChannel.cpp (consume): Moved exceptions to Queue * cpp/lib/broker/BrokerMessageBase.cpp: - Added getApplicationHeaders. * cpp/lib/broker/BrokerMessageMessage.cpp: - Fixed exchangeName/destination mix up. - Removed redundant constructor. - Added getApplicationHeaders * cpp/lib/broker/MessageHandlerImpl.cpp: - Added missing acknowledgements - Replaced assert(0) with throw "unimplemented". - Moved exchange existence exceptions to ExchangeRegistry - Handle transfers with references. * cpp/tests/Makefile.am (check): Don't run tests unless all libs built OK. * cpp/tests/python_tests: Re-enabled python tests. Not all passing. * python/tests/message.py (MessageTests.test_get): Replace get-ok with ok. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@504305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerMessageBase.h')
-rw-r--r--cpp/lib/broker/BrokerMessageBase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/lib/broker/BrokerMessageBase.h b/cpp/lib/broker/BrokerMessageBase.h
index 9a5b136ada..d5e37fbc7a 100644
--- a/cpp/lib/broker/BrokerMessageBase.h
+++ b/cpp/lib/broker/BrokerMessageBase.h
@@ -37,6 +37,7 @@ namespace framing {
class MethodContext;
class ChannelAdapter;
class BasicHeaderProperties;
+class FieldTable;
}
namespace broker {
@@ -114,7 +115,12 @@ class Message{
virtual bool isComplete() = 0;
virtual u_int64_t contentSize() const = 0;
+ // FIXME aconway 2007-02-06: Get rid of BasicHeaderProperties
+ // at this level. Expose only generic properties available from both
+ // message types (e.g. getApplicationHeaders below).
+ //
virtual framing::BasicHeaderProperties* getHeaderProperties() = 0;
+ virtual const framing::FieldTable& getApplicationHeaders() = 0;
virtual bool isPersistent() = 0;
virtual const ConnectionToken* const getPublisher() = 0;