[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
Public Member Functions | |
AppContext (Context *parent) | |
~AppContext () | |
App * | getApp () |
GlobalContext * | getGlobalContext () |
Static Public Member Functions | |
static Context * | contextCreator (const ServerConfig::ConfigNode &, Context *parent) |
Protected Member Functions | |
virtual bool | onSetParam (const ConfigNode &) |
virtual Context * | getContext (const ConfigNode &node) |
virtual bool | onPreComplete () |
virtual bool | onPostComplete () |
bool | setSessionTimeout (const ServerConfig::ConfigNode &) |
bool | setUploadDir (const ServerConfig::ConfigNode &) |
bool | addInitParam (const ServerConfig::ConfigNode &) |
Static Private Member Functions | |
static void | registerParams (ParamRegistry< ServerConfig::AppContext > &) |
static void | registerContexts (ContextRegistry &) |
Private Attributes | |
App * | app |
time_t | sessionTimeout |
std::string | uploadDir |
util::pairlist_t | params |
Static Private Attributes | |
static ContextRegistry | contextregistry |
static ParamRegistry< AppContext > | paramregistry |
Definition at line 358 of file serverconfig.h.
container::ServerConfig::AppContext::AppContext | ( | Context * | parent | ) |
Definition at line 191 of file serverconfig.cpp.
References container::ServerConfig::ParamRegistry< T >::getParamList(), container::ServerConfig::Context::getUnsetParams(), and paramregistry.
Referenced by contextCreator().
Here is the call graph for this function:
container::ServerConfig::AppContext::~AppContext | ( | ) |
void container::ServerConfig::AppContext::registerParams | ( | ParamRegistry< ServerConfig::AppContext > & | ) | [static, private] |
Definition at line 290 of file serverconfig.cpp.
References addInitParam(), container::ServerConfig::PARAM_INHERITABLE, container::ServerConfig::ParamRegistry< T >::registerParam(), setSessionTimeout(), and setUploadDir().
Here is the call graph for this function:
void container::ServerConfig::AppContext::registerContexts | ( | ContextRegistry & | ) | [static, private] |
Definition at line 269 of file serverconfig.cpp.
References container::ServerConfig::CSPContext::contextCreator(), container::ServerConfig::ServletContext::contextCreator(), and container::ServerConfig::ContextRegistry::registerContext().
Here is the call graph for this function:
bool container::ServerConfig::AppContext::onSetParam | ( | const ConfigNode & | ) | [protected, virtual] |
Implements container::ServerConfig::Context.
Definition at line 235 of file serverconfig.cpp.
References paramregistry, and container::ServerConfig::ParamRegistry< T >::setParam().
Here is the call graph for this function:
virtual Context* container::ServerConfig::AppContext::getContext | ( | const ConfigNode & | node | ) | [inline, protected, virtual] |
node | Finds context for node with the name. Derived classes should override this function to search in their own context registries. |
Implements container::ServerConfig::Context.
Definition at line 372 of file serverconfig.h.
References contextregistry, and container::ServerConfig::ContextRegistry::getContext().
Here is the call graph for this function:
bool container::ServerConfig::AppContext::onPreComplete | ( | ) | [protected, virtual] |
called before child contexts' complete()
Reimplemented from container::ServerConfig::Context.
Definition at line 341 of file serverconfig.cpp.
References container::App::addInitParam(), app, getGlobalContext(), container::ServerConfig::Context::getName(), container::ServerConfig::Context::getServerConfig(), params, container::ServerConfig::GlobalContext::registerApp(), sessionTimeout, and uploadDir.
Here is the call graph for this function:
bool container::ServerConfig::AppContext::onPostComplete | ( | ) | [protected, virtual] |
called after child contexts' complete()
Reimplemented from container::ServerConfig::Context.
Definition at line 351 of file serverconfig.cpp.
References app, and container::App::initServlets().
Here is the call graph for this function:
bool container::ServerConfig::AppContext::setSessionTimeout | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 302 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and sessionTimeout.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::AppContext::setUploadDir | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 311 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and uploadDir.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::AppContext::addInitParam | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 321 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), container::ServerConfig::Context::name, and params.
Referenced by registerParams().
Here is the call graph for this function:
static Context* container::ServerConfig::AppContext::contextCreator | ( | const ServerConfig::ConfigNode & | , | |
Context * | parent | |||
) | [inline, static] |
Definition at line 382 of file serverconfig.h.
References AppContext(), and container::ServerConfig::Context::parent.
Referenced by container::ServerConfig::GlobalContext::registerContexts().
Here is the call graph for this function:
App* container::ServerConfig::AppContext::getApp | ( | ) | [inline] |
GlobalContext* container::ServerConfig::AppContext::getGlobalContext | ( | ) | [inline] |
Definition at line 385 of file serverconfig.h.
References container::ServerConfig::Context::getParent().
Referenced by onPreComplete().
Here is the call graph for this function:
App* container::ServerConfig::AppContext::app [private] |
Definition at line 363 of file serverconfig.h.
Referenced by getApp(), onPostComplete(), onPreComplete(), and ~AppContext().
time_t container::ServerConfig::AppContext::sessionTimeout [private] |
Definition at line 364 of file serverconfig.h.
Referenced by onPreComplete(), and setSessionTimeout().
std::string container::ServerConfig::AppContext::uploadDir [private] |
Reimplemented from container::ServerConfig::Context.
Definition at line 366 of file serverconfig.h.
Referenced by addInitParam(), and onPreComplete().