#include <serverconfig.h>


Public Member Functions | |
| ServerConfig () | |
| virtual | ~ServerConfig () |
| void | processConfig () |
| bool | setGlobalParam (const std::string &type, const std::string &value) |
| container::RequestListener * | getListener () |
| serverconfig::AppContext * | getApp (const std::string &name) |
| virtual ConfigNode::childlist_t | getNodes (const ConfigNode *parent)=0 |
| virtual ConfigNode::childlist_t | getNodes (const ConfigNode *parent, const std::string &type)=0 |
Static Public Member Functions | |
| static void | fart (const char *) throw (servlet::ServletException) |
Protected Attributes | |
| ConfigNode * | m_root |
Private Types | |
| typedef ContextRegistry::createcontext_f | createcontext_f |
Private Attributes | |
| GlobalContext | m_globalContext |
Definition at line 55 of file serverconfig.h.
typedef ContextRegistry::createcontext_f container::serverconfig::ServerConfig::createcontext_f [private] |
Definition at line 101 of file serverconfig.h.
| container::serverconfig::ServerConfig::ServerConfig | ( | ) |
Definition at line 32 of file serverconfig.cpp.
| container::serverconfig::ServerConfig::~ServerConfig | ( | ) | [virtual] |
Definition at line 39 of file serverconfig.cpp.
| void container::serverconfig::ServerConfig::fart | ( | const char * | msg | ) | throw (servlet::ServletException) [static] |
Definition at line 62 of file serverconfig.cpp.
Referenced by container::serverconfig::ServletContext::contextCreator(), container::serverconfig::CSPContext::contextCreator(), and processConfig().
| container::serverconfig::ServerConfig::getApp | ( | const std::string & | name | ) | [inline] |
Returns named application (ServletContext implementation) object
Definition at line 83 of file serverconfig.h.
References container::serverconfig::GlobalContext::getApp(), and m_globalContext.
Referenced by container::serverconfig::AppContext::getContext().

| container::RequestListener* container::serverconfig::ServerConfig::getListener | ( | ) | [inline] |
Definition at line 77 of file serverconfig.h.
References container::serverconfig::GlobalContext::getListener(), and m_globalContext.
Referenced by container::CServDemon::run().

| container::serverconfig::ServerConfig::getNodes | ( | const ConfigNode * | parent, | |
| const std::string & | type | |||
| ) | [pure virtual] |
Returns list of child nodes of parent. This function must be overriden by derived classes to provide access to actual configuration storage
| parent | Node whose children to return | |
| type | Type of nodes to return (i.e. param, app, servlet, etc..) |
Implemented in container::serverconfig::XMLServerConfig.
| container::serverconfig::ServerConfig::getNodes | ( | const ConfigNode * | parent | ) | [pure virtual] |
Implemented in container::serverconfig::XMLServerConfig.
Referenced by container::serverconfig::Context::process().
| void container::serverconfig::ServerConfig::processConfig | ( | ) |
Definition at line 50 of file serverconfig.cpp.
References container::serverconfig::Context::complete(), fart(), m_globalContext, m_root, and container::serverconfig::Context::process().
Referenced by container::CServDemon::run().

| bool container::serverconfig::ServerConfig::setGlobalParam | ( | const std::string & | type, | |
| const std::string & | value | |||
| ) |
Definition at line 71 of file serverconfig.cpp.
References m_globalContext, and container::serverconfig::GlobalContext::setGlobalParam().
Referenced by container::CServDemon::parseOptions(), and container::CServDemon::setConfigPath().

Definition at line 103 of file serverconfig.h.
Referenced by getApp(), getListener(), processConfig(), and setGlobalParam().
ConfigNode* container::serverconfig::ServerConfig::m_root [protected] |
Definition at line 65 of file serverconfig.h.
Referenced by container::serverconfig::XMLServerConfig::load(), processConfig(), and container::serverconfig::XMLServerConfig::~XMLServerConfig().