Inheritance diagram for ServletContext:
Public Member Functions | |
this (char[] name) | |
this (char[] name, char[] basePath) | |
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 | |
this () | |
Protected Member Functions | |
synchronized ServletContext | setAttributes (MutableDictionary other) |
synchronized ServletContext | setConfiguration (MutableDictionary other) |
Private Attributes | |
char[] | name |
char[] | basePath |
MutableDictionary | attributes |
MutableDictionary | configuration |
Static Private Attributes | |
Logger | logger |
ServletException | irp |
MutableDictionary | mimeMap |
const char[] | ServerIdentity = "Mango.Servlet/Beta 9" |
const MimeMap | list [] |
Definition at line 56 of file ServletContext.d.
|
Initialize the mime-map and the servlet logging instance Definition at line 186 of file ServletContext.d. References Logger::getLogger(), 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 208 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 221 of file ServletContext.d. References basePath. |
|
Return the name of this context. Definition at line 246 of file ServletContext.d. Referenced by ServletRequest::getContextPath(), and ServletRequest::getPathInfo(). |
|
Return the attributes of this context Definition at line 257 of file ServletContext.d. References attributes. |
|
Return the current configuration of this context Definition at line 268 of file ServletContext.d. |
|
Swizzle the attributes of this context. This is not to be exposed publicly. Definition at line 280 of file ServletContext.d. References attributes. |
|
Swizzle the configuration of this context. This is not to be exposed publicly. Definition at line 293 of file ServletContext.d. |
|
Return the major version number. Definition at line 305 of file ServletContext.d. |
|
Return the minor number. Definition at line 316 of file ServletContext.d. |
|
Return the mime type for a given file extension. Returns null if the extension is not known. Definition at line 328 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 343 of file ServletContext.d. References basePath, checkPath(), and FileConduit. Referenced by ServletResponse::copyFile(). |
|
Send an informational message to the logger subsystem Definition at line 355 of file ServletContext.d. References Logger::info(). |
|
Send a error message to the logger subsystem Definition at line 367 of file ServletContext.d. References Logger::error(). |
|
Return the identity of this server Definition at line 379 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 392 of file ServletContext.d. References irp. Referenced by getResourceAsFile(). |
|
Definition at line 58 of file ServletContext.d. |
|
Definition at line 58 of file ServletContext.d. Referenced by getResourceAsFile(), and this(). |
|
Definition at line 60 of file ServletContext.d. Referenced by getAttributes(), and setAttributes(). |
|
Definition at line 60 of file ServletContext.d. |
|
Definition at line 63 of file ServletContext.d. |
|
Definition at line 65 of file ServletContext.d. Referenced by checkPath(), and this(). |
|
Definition at line 67 of file ServletContext.d. Referenced by getMimeType(), and this(). |
|
Definition at line 69 of file ServletContext.d. Referenced by getServerInfo(). |
|
Initial value: [ {"a", "application/octet-stream"} Definition at line 80 of file ServletContext.d. Referenced by this(). |