TKN Logo SelfSoft Logo

Total Knowledge

SelfSoft, Inc.

CPPSERV

[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]

container::ServerConfig::AppContext Class Reference

Inheritance diagram for container::ServerConfig::AppContext:

Inheritance graph
[legend]
Collaboration diagram for container::ServerConfig::AppContext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AppContext (Context *parent)
 ~AppContext ()
AppgetApp ()
GlobalContextgetGlobalContext ()

Static Public Member Functions

static ContextcontextCreator (const ServerConfig::ConfigNode &, Context *parent)

Protected Member Functions

virtual bool onSetParam (const ConfigNode &)
virtual ContextgetContext (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

Appapp
time_t sessionTimeout
std::string uploadDir
util::pairlist_t params

Static Private Attributes

static ContextRegistry contextregistry
static ParamRegistry< AppContextparamregistry

Detailed Description

Holds Application object. Applications contain servlets, sessions, app-level parameters, etc.

Definition at line 358 of file serverconfig.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 258 of file serverconfig.cpp.

References app.


Member Function Documentation

void container::ServerConfig::AppContext::registerParams ( ParamRegistry< ServerConfig::AppContext > &   )  [static, private]

void container::ServerConfig::AppContext::registerContexts ( ContextRegistry  )  [static, private]

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]

Parameters:
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]

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]

Definition at line 384 of file serverconfig.h.

References app.

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:


Member Data Documentation

Definition at line 364 of file serverconfig.h.

Referenced by onPreComplete(), and setSessionTimeout().

Definition at line 365 of file serverconfig.h.

Referenced by onPreComplete(), and setUploadDir().


The documentation for this class was generated from the following files:

SourceForge.net Logo

Authoright © Total Knowledge: 2001-2004