Inheritance diagram for ServletProvider:
Definition at line 94 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 109 of file ServletProvider.d. References addContext(), contexts, HashMap, proxies, and QueuedCache. |
|
IProvider interface method Reimplemented from IProvider. Definition at line 130 of file ServletProvider.d. References ServletRequest. |
|
IProvider interface method Reimplemented from IProvider. Definition at line 141 of file ServletProvider.d. References ServletResponse. |
|
Return the name of this provider Reimplemented from IProvider. Definition at line 152 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 165 of file ServletProvider.d. References getContext(). Referenced by addServlet(). |
|
Return the named context, or null if the name is unregistered Definition at line 176 of file ServletProvider.d. Referenced by getDefaultContext(). |
|
Register a servlet context. The name is provided by the context itself. Definition at line 190 of file ServletProvider.d. Referenced by TaskServer::this(), and this(). |
|
lookup and cast HashMap entry Definition at line 204 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 216 of file ServletProvider.d. 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 236 of file ServletProvider.d. |
|
Return the servlet registered with the specified name, or null if there is no such servlet. Definition at line 280 of file ServletProvider.d. |
|
Register a servlet with the specified name. The servlet is associated with the default context. Definition at line 294 of file ServletProvider.d. Referenced by addServlet(), and testServletEngine(). |
|
Register a servlet with the specified name and context Definition at line 305 of file ServletProvider.d. References addServlet(), and getDefaultContext(). |
|
Register a servlet with the specified name and context Definition at line 322 of file ServletProvider.d. |
|
Register a servlet with the specified name and configuration Definition at line 335 of file ServletProvider.d. |
|
Scan the servlet mappings, looking for one that matches the specified path. The first match found is returned. Definition at line 355 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 381 of file ServletProvider.d. References 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 445 of file ServletProvider.d. References HttpResponseCode. |
|
Definition at line 96 of file ServletProvider.d. |
|
Definition at line 97 of file ServletProvider.d. Referenced by lookupProxy(), and this(). |
|
Definition at line 98 of file ServletProvider.d. Referenced by this(). |
|
Definition at line 99 of file ServletProvider.d. |