#include <requesthandler.h>


Classes | |
| struct | ServDesc |
Public Member Functions | |
| RequestHandler (Connection *con) | |
| virtual | ~RequestHandler () |
| virtual void | taskFunction () |
Static Public Member Functions | |
| static bool | addServlet (const std::string &, ServletContainer *) |
| static bool | removeServlet (const std::string &name) |
Private Types | |
| typedef ServletMap< ServDesc > | urlmap_t |
Private Member Functions | |
| void | noSuchServlet () |
Private Attributes | |
| Connection * | m_con |
Static Private Attributes | |
| static urlmap_t | m_urlMap |
| static sptk::CRWLock | m_servletMapLock |
| static std::string | m_noSuchServletText |
Definition at line 42 of file requesthandler.h.
typedef ServletMap<ServDesc> container::RequestHandler::urlmap_t [private] |
Definition at line 57 of file requesthandler.h.
| container::RequestHandler::RequestHandler | ( | Connection * | con | ) |
Definition at line 33 of file requesthandler.cpp.
| container::RequestHandler::~RequestHandler | ( | ) | [virtual] |
| bool container::RequestHandler::addServlet | ( | const std::string & | name, | |
| ServletContainer * | cont | |||
| ) | [static] |
Definition at line 77 of file requesthandler.cpp.
References container::ServletMap< T >::getServletDesc(), m_servletMapLock, and m_urlMap.
Referenced by container::serverconfig::AppContext::addServlet().

| void container::RequestHandler::noSuchServlet | ( | ) | [private] |
Definition at line 65 of file requesthandler.cpp.
References m_con, m_noSuchServletText, and servlet::HttpServletResponse::SC_NOT_FOUND.
Referenced by taskFunction().
| bool container::RequestHandler::removeServlet | ( | const std::string & | name | ) | [static] |
Definition at line 89 of file requesthandler.cpp.
References container::ServletMap< T >::getServletDesc(), container::RequestHandler::RequestHandler::ServDesc::m_servletLock, m_servletMapLock, m_urlMap, and container::ServletMap< T >::removeDesc().
Referenced by container::serverconfig::RHServletRemover::operator()().

| void container::RequestHandler::taskFunction | ( | ) | [virtual] |
Definition at line 110 of file requesthandler.cpp.
References container::ServletMap< T >::getPath(), container::ServletMap< T >::getServletDesc(), m_con, container::RequestHandler::RequestHandler::ServDesc::m_cont, container::RequestHandler::RequestHandler::ServDesc::m_servletLock, m_servletMapLock, m_urlMap, noSuchServlet(), servlet::Traceable::printStackTrace(), and container::ServletContainer::service().

Connection* container::RequestHandler::m_con [private] |
Definition at line 60 of file requesthandler.h.
Referenced by noSuchServlet(), taskFunction(), and ~RequestHandler().
std::string container::RequestHandler::m_noSuchServletText [static, private] |
sptk::CRWLock container::RequestHandler::m_servletMapLock [static, private] |
Definition at line 59 of file requesthandler.h.
Referenced by addServlet(), removeServlet(), and taskFunction().
RequestHandler::urlmap_t container::RequestHandler::m_urlMap [static, private] |
Definition at line 58 of file requesthandler.h.
Referenced by addServlet(), removeServlet(), and taskFunction().