00001 #ifndef QPID_BROKER_SESSIONCONTEXT_H
00002 #define QPID_BROKER_SESSIONCONTEXT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "qpid/framing/FrameHandler.h"
00026 #include "qpid/framing/AMQP_ClientProxy.h"
00027 #include "qpid/framing/amqp_types.h"
00028 #include "qpid/sys/OutputControl.h"
00029 #include "ConnectionState.h"
00030 #include "OwnershipToken.h"
00031
00032
00033 #include <boost/noncopyable.hpp>
00034
00035 namespace qpid {
00036 namespace broker {
00037
00038 class SessionContext : public OwnershipToken, public sys::OutputControl
00039 {
00040 public:
00041 virtual ~SessionContext(){}
00042 virtual bool isLocal(const ConnectionToken* t) const = 0;
00043 virtual ConnectionState& getConnection() = 0;
00044 virtual framing::AMQP_ClientProxy& getProxy() = 0;
00045 virtual Broker& getBroker() = 0;
00046 };
00047
00048 }}
00049
00050
00051
00052 #endif