[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
#include <serverconfig.h>
Inheritance diagram for container::ServerConfig:
Public Types | |
enum | paramflags_t { PARAM_REQUIRED = 0x1, PARAM_INHERITABLE = 0x2 } |
Public Member Functions | |
ServerConfig () | |
virtual | ~ServerConfig () |
void | processConfig () |
bool | setGlobalParam (const std::string &type, const std::string &value) |
std::string | getGlobalParam (const std::string &type) |
RequestListener * | getListener () |
App * | getApp (const std::string &name) |
Static Public Member Functions | |
static void | fart (const char *) throw (servlet::ServletException) |
Protected Member Functions | |
virtual ConfigNode::childlist_t | getNodes (const ConfigNode *parent)=0 |
virtual ConfigNode::childlist_t | getNodes (const ConfigNode *parent, const std::string &type)=0 |
Protected Attributes | |
ConfigNode * | root |
Private Types | |
typedef ContextRegistry::createcontext_f | createcontext_f |
Private Attributes | |
GlobalContext | globalContext |
Classes | |
class | AppContext |
class | ConfigNode |
class | Context |
class | ContextRegistry |
class | CSPContext |
class | GlobalContext |
class | ParamRegistry |
class | ServletContext |
Definition at line 48 of file serverconfig.h.
typedef ContextRegistry::createcontext_f container::ServerConfig::createcontext_f [private] |
Definition at line 431 of file serverconfig.h.
Describes scopes of parameter. If parameter can be set in multiple scopes, servlet scope overrides app scope, and app scope overrides global scope
Definition at line 95 of file serverconfig.h.
container::ServerConfig::ServerConfig | ( | ) |
Definition at line 31 of file serverconfig.cpp.
container::ServerConfig::~ServerConfig | ( | ) | [virtual] |
Definition at line 38 of file serverconfig.cpp.
void container::ServerConfig::processConfig | ( | ) |
This function is called by main appserver object in order to create all the applications, servlets, etc. In a way this one can be viewed as real entry point, and main &Co are just a bootstraps.
Definition at line 49 of file serverconfig.cpp.
References container::ServerConfig::Context::complete(), fart(), globalContext, container::ServerConfig::Context::process(), and root.
Referenced by container::CServDemon::parseOptions().
Here is the call graph for this function:
void container::ServerConfig::fart | ( | const char * | ) | throw (servlet::ServletException) [static] |
Definition at line 62 of file serverconfig.cpp.
Referenced by container::ServerConfig::CSPContext::contextCreator(), container::ServerConfig::ServletContext::contextCreator(), and processConfig().
bool container::ServerConfig::setGlobalParam | ( | const std::string & | type, | |
const std::string & | value | |||
) |
Definition at line 431 of file serverconfig.cpp.
References globalContext, and container::ServerConfig::GlobalContext::setGlobalParam().
Referenced by container::CServDemon::parseOptions().
Here is the call graph for this function:
std::string container::ServerConfig::getGlobalParam | ( | const std::string & | type | ) |
Definition at line 438 of file serverconfig.cpp.
References container::ServerConfig::GlobalContext::getGlobalParam(), and globalContext.
Here is the call graph for this function:
container::ServerConfig::getListener | ( | ) | [inline] |
Returns request listener object from global context
Definition at line 111 of file serverconfig.h.
References container::ServerConfig::GlobalContext::getListener(), and globalContext.
Referenced by container::CServDemon::run().
Here is the call graph for this function:
container::ServerConfig::getApp | ( | const std::string & | name | ) | [inline] |
Returns named application (ServletContext implementation) object
Definition at line 117 of file serverconfig.h.
References container::ServerConfig::GlobalContext::getApp(), and globalContext.
Referenced by container::App::getContext(), and container::ServerConfig::ServletContext::onPostComplete().
Here is the call graph for this function:
container::ServerConfig::getNodes | ( | const ConfigNode * | parent | ) | [protected, pure virtual] |
Referenced by container::ServerConfig::Context::process().
container::ServerConfig::getNodes | ( | const ConfigNode * | parent, | |
const std::string & | type | |||
) | [protected, 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..) |
container::ServerConfig::root [protected] |
This is root node of configuration. Initially set to NULL, and must be initalized by derived class (either in constructor, or at first call to getNodes(). This member should never be used directly by base class.
Definition at line 86 of file serverconfig.h.
Referenced by container::XMLServerConfig::load(), processConfig(), and container::XMLServerConfig::~XMLServerConfig().
Definition at line 433 of file serverconfig.h.
Referenced by getApp(), getGlobalParam(), getListener(), processConfig(), and setGlobalParam().