Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

SessionScopeHandlerPool.h

00001 /* -*- C++ -*- */
00002 /*
00003  *   Copyright 2003-2004 The Apache Software Foundation.
00004  *
00005  *   Licensed under the Apache License, Version 2.0 (the "License");
00006  *   you may not use this file except in compliance with the License.
00007  *   You may obtain a copy of the License at
00008  *
00009  *       http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  *   Unless required by applicable law or agreed to in writing, software
00012  *   distributed under the License is distributed on an "AS IS" BASIS,
00013  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *   See the License for the specific language governing permissions and
00015  *   limitations under the License.
00016  *
00017  */
00018 
00019 
00020 #if !defined(AXIS_SESSIONSCOPEHANDLERPOOL_H__INCLUDED_)
00021 #define AXIS_SESSIONSCOPEHANDLERPOOL_H__INCLUDED_
00022 
00023 #define SESSIONLESSHANDLERS     "0aaaaa"
00024 
00025 #include "SharedObject.h"
00026 #include <axis/server/BasicHandler.h>
00027 
00028 #include <map>
00029 #include <list>
00030 #include <string>
00031 
00032 using namespace std;
00033 /*
00034  *   @class SessionScopeHandlerPool
00035  *   @brief interface for the SessionScopeHandlerPool class.
00036  *
00037  *
00038  *   @author Susantha Kumara (skumara@virtusa.com)
00039  */
00040 class SessionScopeHandlerPool:protected SharedObject
00041 {
00042     public:
00043         SessionScopeHandlerPool ();
00044         virtual ~ SessionScopeHandlerPool ();
00045     private:
00046         typedef map < string, list <BasicHandler*> >SessionHandlers;
00047         map <int, SessionHandlers*>m_Handlers;
00048     public:
00049         int GetInstance (string &sSessionId, BasicHandler** pHandler, 
00050             int nLibId);
00051         int PutInstance (string &sSessionId, BasicHandler* pHandler, 
00052             int nLibId);
00053         void EndSession (string &sSessionId);
00054 };
00055 
00056 #endif 

Generated on Fri Apr 9 12:21:29 2004 for axiscpp by doxygen1.2.18