[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
Public Member Functions | |
ServletContext (Context *parent, const std::string &path, const std::string &dso, bool hidden) | |
Static Public Member Functions | |
static Context * | contextCreator (const ServerConfig::ConfigNode &n, Context *parent) |
Protected Member Functions | |
virtual bool | onSetParam (const ConfigNode &) |
virtual bool | onPostComplete () |
virtual Context * | getContext (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< ServletContext > | paramregistry |
Definition at line 398 of file serverconfig.h.
container::ServerConfig::ServletContext::ServletContext | ( | Context * | parent, | |
const std::string & | path, | |||
const std::string & | dso, | |||
bool | hidden | |||
) |
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:
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] |
called after child contexts' complete()
Reimplemented from container::ServerConfig::Context.
Definition at line 389 of file serverconfig.cpp.
References container::ServletConfigImpl::addParam(), container::App::addServlet(), dso, container::ServerConfig::getApp(), container::ServerConfig::Context::getName(), container::ServerConfig::Context::getParent(), getServletName(), hidden, params, and path.
Here is the call graph for this function:
virtual Context* container::ServerConfig::ServletContext::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 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] |
Reimplemented in container::ServerConfig::CSPContext.
Definition at line 357 of file serverconfig.cpp.
References dso, container::ServerConfig::fart(), container::ServerConfig::ConfigNode::getAttrs(), hidden, container::ServerConfig::Context::parent, and path.
Referenced by container::ServerConfig::AppContext::registerContexts().
Here is the call graph for this function:
std::string container::ServerConfig::ServletContext::dso [private] |
Definition at line 403 of file serverconfig.h.
Referenced by container::ServerConfig::CSPContext::contextCreator(), contextCreator(), and onPostComplete().
bool container::ServerConfig::ServletContext::hidden [private] |
Definition at line 404 of file serverconfig.h.
Referenced by container::ServerConfig::CSPContext::contextCreator(), contextCreator(), and onPostComplete().
Reimplemented from container::ServerConfig::Context.
Definition at line 405 of file serverconfig.h.
Referenced by addInitParam(), and onPostComplete().
std::string container::ServerConfig::ServletContext::path [private] |
Definition at line 406 of file serverconfig.h.
Referenced by container::ServerConfig::CSPContext::contextCreator(), contextCreator(), and onPostComplete().