mini/zz_web_config.h

Go to the documentation of this file.
00001 /* libzzinet
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2004-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008  
00015 #ifndef zz_web_config_h
00016 #define zz_web_config_h
00017 
00018 #include <zz_thread_safe_config.h>
00019 #include <zz_string.h>
00020 
00021 // The class
00022 class CzzWebConfig : public CzzThreadSafeConfig
00023 {
00024 
00025 public:
00026 
00027         //* Construction
00028         ~CzzWebConfig();
00029 
00030     static CzzString appName( void );
00031     static CzzWebConfig* getInstance( void );
00032 
00033         CzzString getAlias( const CzzString& alias );
00034         CzzString getUserPwd( const CzzString& usr );
00035         CzzString getLang( void );
00036         CzzString getLogoutRedir( void );
00037         CzzString getCGIDir( void );
00038         CzzString getSkin( void );
00039         CzzString getDocumentRoot( void );
00040         CzzString getListenPort( void );
00041         CzzString getAccessLog( void );
00042     CzzString getPoolName( void );
00043         CzzString getJdbcPoolName( void );
00044 
00045     bool getInitJava( void );
00046     CzzString getJvmPath( void );
00047     CzzString getJvmArgs( void );
00048     CzzString getClasspath( void );
00049 
00050         CzzString getContentType( const CzzString& ext );
00051         bool isOpenUrl( const CzzString& url );
00052         bool getDoAcessLog( void );
00053         bool getDoCheckAuth( void );
00054 
00055     int getUserRole( const CzzString& usr );
00056         int getPoolSize( void );
00057         int getJdbcPoolSize( void );
00058     int getSessionSize( void );
00059     int getSessionTimeout( void );
00060 
00061 private:
00062     CzzWebConfig();
00063 
00064     static CzzWebConfig* m_This;
00065 
00066 };
00067 
00068 #endif // zz_web_config_h
00069 
00070 

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO