diff options
Diffstat (limited to 'cpp/src/qpid/broker/MessageAdapter.cpp')
-rw-r--r-- | cpp/src/qpid/broker/MessageAdapter.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/MessageAdapter.cpp b/cpp/src/qpid/broker/MessageAdapter.cpp index d54f30ff72..ea2882b474 100644 --- a/cpp/src/qpid/broker/MessageAdapter.cpp +++ b/cpp/src/qpid/broker/MessageAdapter.cpp @@ -53,10 +53,16 @@ namespace broker{ bool TransferAdapter::isPersistent(const framing::FrameSet& f) { - const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>(); + const framing::DeliveryProperties010* p = f.getHeaders()->get<framing::DeliveryProperties010>(); return p && p->getDeliveryMode() == 2; } + bool TransferAdapter::requiresAccept(const framing::FrameSet& f) + { + const framing::Message010TransferBody* b = f.as<framing::Message010TransferBody>(); + return b && b->getAcceptMode(); + } + std::string PreviewAdapter::getExchange(const framing::FrameSet& f) { return f.as<framing::MessageTransferBody>()->getDestination(); @@ -74,4 +80,10 @@ namespace broker{ return p ? &(p->getApplicationHeaders()) : 0; } + bool PreviewAdapter::isPersistent(const framing::FrameSet& f) + { + const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>(); + return p && p->getDeliveryMode() == 2; + } + }} |