CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::serverconfig::ServletContext Class Reference

#include <servletcontext.h>

Inheritance diagram for container::serverconfig::ServletContext:
Collaboration diagram for container::serverconfig::ServletContext:

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 ConfigNode &n, Context *parent)

Protected Member Functions

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

Static Private Member Functions

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

Private Attributes

std::string m_dso
bool m_hidden
util::pairlist_t m_params
std::string m_path
size_t m_maxRequestSize
size_t m_maxFileSize

Static Private Attributes

static ContextRegistry m_contextregistry
static ParamRegistry
< ServletContext
m_paramregistry

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 37 of file servletcontext.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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

Definition at line 64 of file servletcontext.cpp.

References container::serverconfig::ConfigNode::getAttrs(), and m_params.

Referenced by registerParams().

Here is the call graph for this function:

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

virtual Context* container::serverconfig::ServletContext::getContext ( const ConfigNode node  )  [inline, protected, virtual]

Implements container::serverconfig::Context.

Definition at line 54 of file servletcontext.h.

References container::serverconfig::ContextRegistry::getContext(), and m_contextregistry.

Here is the call graph for this function:

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

Reimplemented in container::serverconfig::CSPContext.

Definition at line 134 of file servletcontext.cpp.

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

Referenced by onPostComplete().

Here is the call graph for this function:

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

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

Implements container::serverconfig::Context.

Definition at line 47 of file servletcontext.cpp.

References m_paramregistry, and container::serverconfig::ParamRegistry< T >::setParam().

Here is the call graph for this function:

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

Definition at line 52 of file servletcontext.cpp.

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

bool container::serverconfig::ServletContext::setMaxFileSize ( const ConfigNode val  )  [protected]

Definition at line 91 of file servletcontext.cpp.

References container::serverconfig::ConfigNode::getAttrs(), and m_maxFileSize.

Referenced by registerParams().

Here is the call graph for this function:

bool container::serverconfig::ServletContext::setMaxRequestSize ( const ConfigNode val  )  [protected]

Definition at line 80 of file servletcontext.cpp.

References container::serverconfig::ConfigNode::getAttrs(), and m_maxRequestSize.

Referenced by registerParams().

Here is the call graph for this function:


Member Data Documentation

Definition at line 42 of file servletcontext.h.

Referenced by onPostComplete().

Definition at line 43 of file servletcontext.h.

Referenced by onPostComplete().

Definition at line 47 of file servletcontext.h.

Referenced by onPostComplete(), and setMaxFileSize().

Definition at line 45 of file servletcontext.h.

Referenced by onPostComplete().


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

SourceForge.net Logo