summaryrefslogtreecommitdiff
path: root/qpid/cpp/broker/src/SessionHandlerImpl.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-10-06 16:17:06 +0000
committerGordon Sim <gsim@apache.org>2006-10-06 16:17:06 +0000
commit03ec6f44055600e54e7f20ff530ef3ef38eb92f0 (patch)
tree90a1168989e5a6ce39f5518f96ff19ef6add7a7a /qpid/cpp/broker/src/SessionHandlerImpl.cpp
parent8068afaf533fe54a175382bd52e2b6dd187e1eb8 (diff)
downloadqpid-python-03ec6f44055600e54e7f20ff530ef3ef38eb92f0.tar.gz
Decoupled routing from the channel and message classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@453657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/broker/src/SessionHandlerImpl.cpp')
-rw-r--r--qpid/cpp/broker/src/SessionHandlerImpl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/cpp/broker/src/SessionHandlerImpl.cpp b/qpid/cpp/broker/src/SessionHandlerImpl.cpp
index eb8f37030c..63a42a7fd6 100644
--- a/qpid/cpp/broker/src/SessionHandlerImpl.cpp
+++ b/qpid/cpp/broker/src/SessionHandlerImpl.cpp
@@ -18,8 +18,9 @@
#include <iostream>
#include "SessionHandlerImpl.h"
#include "FanOutExchange.h"
-#include "TopicExchange.h"
#include "HeadersExchange.h"
+#include "Router.h"
+#include "TopicExchange.h"
#include "assert.h"
using namespace std::tr1;
@@ -153,11 +154,11 @@ void SessionHandlerImpl::closed(){
}
void SessionHandlerImpl::handleHeader(u_int16_t channel, AMQHeaderBody::shared_ptr body){
- getChannel(channel)->handleHeader(body, exchanges);
+ getChannel(channel)->handleHeader(body, Router(*exchanges));
}
void SessionHandlerImpl::handleContent(u_int16_t channel, AMQContentBody::shared_ptr body){
- getChannel(channel)->handleContent(body, exchanges);
+ getChannel(channel)->handleContent(body, Router(*exchanges));
}
void SessionHandlerImpl::handleHeartbeat(AMQHeartbeatBody::shared_ptr body){