#include <servletcontext.h>
Public Member Functions | |
ServletContext (Context *parent, const std::string &path, const std::string &dso, bool hidden) | |
Static Public Member Functions | |
static Context * | contextCreator (const ConfigNode &n, Context *parent) |
Protected Member Functions | |
virtual bool | onSetParam (const ConfigNode &) |
virtual bool | onPostComplete () |
virtual Context * | getContext (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 |
Definition at line 37 of file servletcontext.h.
container::serverconfig::ServletContext::ServletContext | ( | Context * | parent, | |
const std::string & | path, | |||
const std::string & | dso, | |||
bool | hidden | |||
) |
Definition at line 33 of file servletcontext.cpp.
References container::serverconfig::ParamRegistry< T >::getParamList(), container::serverconfig::Context::getUnsetParams(), and m_paramregistry.
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().
Context * container::serverconfig::ServletContext::contextCreator | ( | const ConfigNode & | n, | |
Context * | parent | |||
) | [static] |
Reimplemented in container::serverconfig::CSPContext.
Definition at line 102 of file servletcontext.cpp.
References container::serverconfig::ServerConfig::fart(), and container::serverconfig::ConfigNode::getAttrs().
Referenced by container::serverconfig::AppContext::registerContexts().
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.
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().
bool container::serverconfig::ServletContext::onPostComplete | ( | ) | [protected, virtual] |
called after child contexts' complete()
Reimplemented from container::serverconfig::Context.
Definition at line 118 of file servletcontext.cpp.
References container::ServletConfigImpl::addParam(), container::serverconfig::AppContext::addServlet(), container::serverconfig::Context::getName(), container::serverconfig::Context::getParent(), getServletName(), m_dso, m_hidden, m_maxFileSize, m_maxRequestSize, m_params, and m_path.
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().
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] |
Definition at line 57 of file servletcontext.cpp.
References addInitParam(), container::serverconfig::PARAM_INHERITABLE, container::serverconfig::PARAM_SINGLE_OF_TYPE, container::serverconfig::ParamRegistry< T >::registerParam(), setMaxFileSize(), and setMaxRequestSize().
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().
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().
ContextRegistry container::serverconfig::ServletContext::m_contextregistry [static, private] |
std::string container::serverconfig::ServletContext::m_dso [private] |
bool container::serverconfig::ServletContext::m_hidden [private] |
size_t container::serverconfig::ServletContext::m_maxFileSize [private] |
Definition at line 47 of file servletcontext.h.
Referenced by onPostComplete(), and setMaxFileSize().
size_t container::serverconfig::ServletContext::m_maxRequestSize [private] |
Definition at line 46 of file servletcontext.h.
Referenced by onPostComplete(), and setMaxRequestSize().
ParamRegistry< ServletContext > container::serverconfig::ServletContext::m_paramregistry [static, private] |
Reimplemented from container::serverconfig::Context.
Definition at line 44 of file servletcontext.h.
Referenced by addInitParam(), and onPostComplete().
std::string container::serverconfig::ServletContext::m_path [private] |