Inheritance diagram for ServletContext:
Public Member Functions | |
this (char[] name, Logger log=null) | |
this (char[] name, char[] basePath, Logger log=null) | |
char[] | getName () |
synchronized Dictionary | getAttributes () |
synchronized Dictionary | getConfiguration () |
int | getMajorVersion () |
int | getMinorVersion () |
char[] | getMimeType (char[] ext) |
FileConduit | getResourceAsFile (char[] path) |
ServletContext | log (char[] msg) |
ServletContext | log (char[] msg, Object error) |
char[] | getServerInfo () |
ServletContext | checkPath (char[] path) |
Static Public Member Functions | |
static | this () |
Protected Member Functions | |
synchronized ServletContext | setAttributes (MutableDictionary other) |
synchronized ServletContext | setConfiguration (MutableDictionary other) |
Private Attributes | |
char[] | name |
char[] | basePath |
Logger | logger |
MutableDictionary | attributes |
MutableDictionary | configuration |
Static Private Attributes | |
static ServletException | irp |
static MutableDictionary | mimeMap |
static const char[] | ServerIdentity = "Mango.Servlet/Beta 9" |
static const MimeMap | list [] |
Classes | |
struct | MimeMap |
Definition at line 58 of file ServletContext.d.
|
Initialize the mime-map and the servlet logging instance Definition at line 187 of file ServletContext.d. References irp, list, mimeMap, Dictionary::optimize(), and MutableDictionary::put(). |
|
Construct a context with the given name, and a base-path of the current working directory. Definition at line 206 of file ServletContext.d. |
|
Construct a context with the given name, and the specified base-path. The latter is where files and properties will be located from. . Definition at line 219 of file ServletContext.d. |
|
Return the name of this context. Definition at line 250 of file ServletContext.d. References name. Referenced by ServletRequest::getContextPath(), and ServletRequest::getPathInfo(). |
|
Return the attributes of this context Definition at line 261 of file ServletContext.d. References attributes. |
|
Return the current configuration of this context Definition at line 272 of file ServletContext.d. References configuration. |
|
Swizzle the attributes of this context. This is not to be exposed publicly. Definition at line 284 of file ServletContext.d. References attributes. |
|
Swizzle the configuration of this context. This is not to be exposed publicly. Definition at line 297 of file ServletContext.d. References configuration. |
|
Return the major version number. Definition at line 309 of file ServletContext.d. |
|
Return the minor number. Definition at line 320 of file ServletContext.d. |
|
Return the mime type for a given file extension. Returns null if the extension is not known. Definition at line 332 of file ServletContext.d. References Dictionary::get(), and mimeMap. Referenced by ServletResponse::copyFile(). |
|
Return a FileConduit for the given path. The file is located via the base-path. Throws an IOException if the path is invalid, or there's a problem of some kind with the file. Definition at line 347 of file ServletContext.d. References basePath, checkPath(), and FileConduit. Referenced by ServletResponse::copyFile(). |
|
Send an informational message to the logger subsystem Definition at line 359 of file ServletContext.d. References Logger::info(), and logger. Referenced by this(). |
|
Send a error message to the logger subsystem Definition at line 371 of file ServletContext.d. References Logger::error(), and logger. |
|
Return the identity of this server Definition at line 383 of file ServletContext.d. References ServerIdentity. |
|
Check the given path to see if it tries to subvert the base-path notion. Throws an IOException if anything dodgy is noted. Definition at line 396 of file ServletContext.d. Referenced by getResourceAsFile(). |
|
Definition at line 60 of file ServletContext.d. Referenced by ServletProxy::getName(), getName(), and this(). |
|
Definition at line 60 of file ServletContext.d. Referenced by getResourceAsFile(), and this(). |
|
Definition at line 62 of file ServletContext.d. Referenced by log(). |
|
Definition at line 63 of file ServletContext.d. Referenced by getAttributes(), and setAttributes(). |
|
Definition at line 63 of file ServletContext.d. Referenced by getConfiguration(), and setConfiguration(). |
|
Definition at line 66 of file ServletContext.d. Referenced by checkPath(), and this(). |
|
Definition at line 68 of file ServletContext.d. Referenced by getMimeType(), and this(). |
|
Definition at line 70 of file ServletContext.d. Referenced by getServerInfo(). |
|
Initial value: [ {"a", "application/octet-stream"} Definition at line 81 of file ServletContext.d. Referenced by this(). |