TKN Logo SelfSoft Logo

Total Knowledge

SelfSoft, Inc.

CPPSERV

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

container::ServerConfig::ServletContext Class Reference

Inheritance diagram for container::ServerConfig::ServletContext:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ServletContext (Context *parent, const std::string &path, const std::string &dso, bool hidden)

Static Public Member Functions

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

Protected Member Functions

virtual bool onSetParam (const ConfigNode &)
virtual bool onPostComplete ()
virtual ContextgetContext (const ConfigNode &node)
bool addInitParam (const ServerConfig::ConfigNode &)
virtual std::string getServletName ()

Static Private Member Functions

static void registerParams (ParamRegistry< ServerConfig::ServletContext > &)
static void registerContexts (ContextRegistry &)

Private Attributes

std::string dso
bool hidden
util::pairlist_t params
std::string path

Static Private Attributes

static ContextRegistry contextregistry
static ParamRegistry< ServletContextparamregistry

Detailed Description

This is context that causes servlets to be loaded. However, at this moment it does not associate servlets with itself in any way. Basically, once servlet is loaded, it is linked to containing app, and forgotten all about it. It may make sense to clean it up a bit, and associate servlet with its context instead, but I am not 100% sure added complexity in destroying apps in that case is useful.

Definition at line 398 of file serverconfig.h.


Constructor & Destructor Documentation

container::ServerConfig::ServletContext::ServletContext ( Context parent,
const std::string &  path,
const std::string &  dso,
bool  hidden 
)

Parameters:
parent Parent context
path Virtual path this servlet is mapped to
dso path to shared library that contains this servlet
hidden Whether to enable access to this servlet through HTTP

Definition at line 207 of file serverconfig.cpp.

References container::ServerConfig::ParamRegistry< T >::getParamList(), container::ServerConfig::Context::getUnsetParams(), and paramregistry.

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 297 of file serverconfig.cpp.

References addInitParam(), and container::ServerConfig::ParamRegistry< T >::registerParam().

Here is the call graph for this function:

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

Definition at line 275 of file serverconfig.cpp.

bool container::ServerConfig::ServletContext::onSetParam ( const ConfigNode  )  [protected, virtual]

Implements container::ServerConfig::Context.

Definition at line 243 of file serverconfig.cpp.

References paramregistry, and container::ServerConfig::ParamRegistry< T >::setParam().

Here is the call graph for this function:

bool container::ServerConfig::ServletContext::onPostComplete (  )  [protected, virtual]

virtual Context* container::ServerConfig::ServletContext::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 413 of file serverconfig.h.

References contextregistry, and container::ServerConfig::ContextRegistry::getContext().

Here is the call graph for this function:

bool container::ServerConfig::ServletContext::addInitParam ( const ServerConfig::ConfigNode  )  [protected]

Definition at line 331 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:

std::string container::ServerConfig::ServletContext::getServletName (  )  [protected, virtual]

Reimplemented in container::ServerConfig::CSPContext.

Definition at line 403 of file serverconfig.cpp.

References container::ServerConfig::Context::getName().

Referenced by onPostComplete().

Here is the call graph for this function:

ServerConfig::Context * container::ServerConfig::ServletContext::contextCreator ( const ServerConfig::ConfigNode n,
Context parent 
) [static]


Member Data Documentation


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

SourceForge.net Logo

Authoright © Total Knowledge: 2001-2004