CPPSERV


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

container::ServletMap< T > Class Template Reference

#include <ServletMap.h>

Inheritance diagram for container::ServletMap< T >:
Collaboration diagram for container::ServletMap< T >:

List of all members.


Classes

class  Func
class  Func2
class  Killer

Public Types

typedef std::map< std::string,
ServletMap< T > * > 
subpaths_t
typedef std::map< std::string,
T * > 
servletmap_t

Public Member Functions

 ~ServletMap ()
ServletMapgetPath (std::string path, bool create)
T * getServletDesc (std::string path)
void removeDesc (const std::string &path)
const servletmap_tgetServlets () const
const subpaths_tgetSubpaths () const
template<class F >
void forEachServletPath (F &func, std::string curpath)
T *& operator[] (const std::string &path)

Static Public Member Functions

static void splitServPath (const std::string &path, std::string &dir, std::string &name)

Private Attributes

servletmap_t m_servlets
subpaths_t m_subpaths

Detailed Description

template<class T>
class container::ServletMap< T >

Definition at line 31 of file ServletMap.h.


Member Typedef Documentation

template<class T>
typedef std::map<std::string,T*> container::ServletMap< T >::servletmap_t

Definition at line 35 of file ServletMap.h.

template<class T>
typedef std::map<std::string,ServletMap<T>*> container::ServletMap< T >::subpaths_t

Definition at line 34 of file ServletMap.h.


Constructor & Destructor Documentation

template<class T >
container::ServletMap< T >::~ServletMap (  )  [inline]

Definition at line 145 of file ServletMap.h.

References container::ServletMap< T >::m_subpaths.


Member Function Documentation

template<class T>
template<class F >
void container::ServletMap< T >::forEachServletPath ( F &  func,
std::string  curpath 
) [inline]

template<class T >
T * container::ServletMap< T >::getServletDesc ( std::string  path  )  [inline]

This function searches servlet map tree for first instance That matches servlet name. i.e.: /app/base/IndexServlet/path/Info will match IndexServlet in dir /app/base/ if it exists, even if there is path or Info servlets mapped elsewhere

Definition at line 156 of file ServletMap.h.

References container::ServletMap< T >::m_servlets, and container::ServletMap< T >::m_subpaths.

Referenced by container::RequestHandler::addServlet(), container::serverconfig::AppContext::getDesc(), container::RequestHandler::removeServlet(), and container::RequestHandler::taskFunction().

template<class T>
const servletmap_t& container::ServletMap< T >::getServlets (  )  const [inline]

Definition at line 82 of file ServletMap.h.

Referenced by container::serverconfig::AppContext::getResourcePaths().

template<class T>
const subpaths_t& container::ServletMap< T >::getSubpaths (  )  const [inline]

Definition at line 83 of file ServletMap.h.

Referenced by container::serverconfig::AppContext::getResourcePaths().

template<class T>
T*& container::ServletMap< T >::operator[] ( const std::string &  path  )  [inline]

Definition at line 90 of file ServletMap.h.

template<class T >
void container::ServletMap< T >::removeDesc ( const std::string &  path  )  [inline]

template<class T >
void container::ServletMap< T >::splitServPath ( const std::string &  path,
std::string &  dir,
std::string &  name 
) [inline, static]


Member Data Documentation


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

SourceForge.net Logo