Inheritance diagram for ServletProvider:
Definition at line 97 of file ServletProvider.d.
|
Construct a ServletProvider with a default path-mapping cache of 2048 entries. We also create the default context here. Definition at line 112 of file ServletProvider.d. References addContext(), cache, contexts, HashMap, proxies, and QueuedCache. |
|
IProvider interface method Reimplemented from IProvider. Definition at line 133 of file ServletProvider.d. References ServletRequest. |
|
IProvider interface method Reimplemented from IProvider. Definition at line 144 of file ServletProvider.d. References ServletResponse. |
|
Return the name of this provider Reimplemented from IProvider. Definition at line 155 of file ServletProvider.d. |
|
Return the default context. This is used for those servlets which don't have a context of their own, and is effectively a backwards-compatability hack. Definition at line 168 of file ServletProvider.d. References getContext(). Referenced by addServlet(). |
|
Return the named context, or null if the name is unregistered Definition at line 179 of file ServletProvider.d. References assert(). Referenced by getDefaultContext(). |
|
Register a servlet context. The name is provided by the context itself. Definition at line 193 of file ServletProvider.d. References assert(). Referenced by TaskServer::this(), and this(). |
|
lookup and cast HashMap entry Definition at line 207 of file ServletProvider.d. References HashMap::get(), and proxies. |
|
Add a uri-mapping for the named servlet. The servlet should have been registered previously. Definition at line 219 of file ServletProvider.d. References assert(). Referenced by testServletEngine(). |
|
Add a uri-mapping for the specified servlet. We follow the Java spec in terms of pattern support, but the namespace is not seperated for the four different pattern types. That is, all the mappings are placed into a single namespace. Definition at line 239 of file ServletProvider.d. References assert(). |
|
Return the servlet registered with the specified name, or null if there is no such servlet. Definition at line 283 of file ServletProvider.d. References assert(). |
|
Register a servlet with the specified name. The servlet is associated with the default context. Definition at line 297 of file ServletProvider.d. Referenced by addServlet(), and testServletEngine(). |
|
Register a servlet with the specified name and context Definition at line 308 of file ServletProvider.d. References addServlet(), and getDefaultContext(). |
|
Register a servlet with the specified name and context Definition at line 325 of file ServletProvider.d. |
|
Register a servlet with the specified name and configuration Definition at line 338 of file ServletProvider.d. References assert(). |
|
Scan the servlet mappings, looking for one that matches the specified path. The first match found is returned. Definition at line 358 of file ServletProvider.d. Referenced by service(). |
|
IProvider interface method. This is where the real work is done, and where optimization efforts should be focused. The process itself is straightforward:
Reimplemented from IProvider. Definition at line 384 of file ServletProvider.d. References cache, constructPathMapping(), HttpResponse::flush(), QueuedCache::get(), IRegisteredServlet::getContext(), IRegisteredServlet::getName(), Uri::getPath(), IRegisteredServlet::getServlet(), ServletRequest::getUri(), ServletResponse::getWriter(), PathMapping::mapping, ServletMapping::proxy, ServletResponse::sendError(), Servlet::service(), and ServletRequest::set(). |
|
handle internal errors Definition at line 448 of file ServletProvider.d. |
|
Definition at line 99 of file ServletProvider.d. |
|
Definition at line 100 of file ServletProvider.d. Referenced by lookupProxy(), and this(). |
|
Definition at line 101 of file ServletProvider.d. Referenced by this(). |
|
Definition at line 102 of file ServletProvider.d. |