00001 #ifndef _broker_HandlerImpl_h
00002 #define _broker_HandlerImpl_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "SemanticState.h"
00023 #include "SessionContext.h"
00024 #include "ConnectionState.h"
00025
00026 namespace qpid {
00027 namespace broker {
00028
00029 class Broker;
00030
00035 class HandlerImpl {
00036 protected:
00037 SemanticState& state;
00038 SessionContext& session;
00039
00040 HandlerImpl(SemanticState& s) : state(s), session(s.getSession()) {}
00041
00042 framing::AMQP_ClientProxy& getProxy() { return session.getProxy(); }
00043 ConnectionState& getConnection() { return session.getConnection(); }
00044 Broker& getBroker() { return session.getConnection().getBroker(); }
00045 };
00046
00047 }}
00048
00049
00050
00051 #endif