Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

AdminContext Class Reference

Inheritance diagram for AdminContext:

ServletContext List of all members.

Public Member Functions

 this (ServletProvider provider, char[] name)

Private Member Functions

 this (char[] name, Logger log=null)
 this (char[] name, char[] basePath, Logger log=null)
char[] getName ()
synchronized Dictionary getAttributes ()
synchronized Dictionary getConfiguration ()
synchronized ServletContext setAttributes (MutableDictionary other)
synchronized ServletContext setConfiguration (MutableDictionary other)
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 Private Member Functions

static this ()

Detailed Description

ServletContext prebuilt to include the AdminServlet. Convenience class allowing a developer to drop this prebuilt context into an existing servlet engine. Create a context with a name ("/admin', for example), and AdminContext will provide a "/logger" handler for modifying logging details.

Definition at line 251 of file Admin.d.


Member Function Documentation

this ServletProvider  provider,
char[]  name
[inline]
 

Definition at line 254 of file Admin.d.

static this  )  [inline, static, inherited]
 

Initialize the mime-map and the servlet logging instance

Definition at line 187 of file ServletContext.d.

References ServletContext::irp, ServletContext::list, ServletContext::mimeMap, Dictionary::optimize(), and MutableDictionary::put().

this char[]  name,
Logger  log = null
[inline, inherited]
 

Construct a context with the given name, and a base-path of the current working directory.

Definition at line 206 of file ServletContext.d.

References ServletContext::log(), and ServletContext::name.

this char[]  name,
char[]  basePath,
Logger  log = null
[inline, inherited]
 

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.

References assert(), ServletContext::basePath, ServletContext::log(), and ServletContext::name.

char [] getName  )  [inline, inherited]
 

Return the name of this context.

Definition at line 250 of file ServletContext.d.

References ServletContext::name.

Referenced by ServletRequest::getContextPath(), and ServletRequest::getPathInfo().

synchronized Dictionary getAttributes  )  [inline, inherited]
 

Return the attributes of this context

Definition at line 261 of file ServletContext.d.

References ServletContext::attributes.

synchronized Dictionary getConfiguration  )  [inline, inherited]
 

Return the current configuration of this context

Definition at line 272 of file ServletContext.d.

References ServletContext::configuration.

synchronized ServletContext setAttributes MutableDictionary  other  )  [inline, protected, inherited]
 

Swizzle the attributes of this context. This is not to be exposed publicly.

Definition at line 284 of file ServletContext.d.

References ServletContext::attributes.

synchronized ServletContext setConfiguration MutableDictionary  other  )  [inline, protected, inherited]
 

Swizzle the configuration of this context. This is not to be exposed publicly.

Definition at line 297 of file ServletContext.d.

References ServletContext::configuration.

int getMajorVersion  )  [inline, inherited]
 

Return the major version number.

Definition at line 309 of file ServletContext.d.

int getMinorVersion  )  [inline, inherited]
 

Return the minor number.

Definition at line 320 of file ServletContext.d.

char [] getMimeType char[]  ext  )  [inline, inherited]
 

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 ServletContext::mimeMap.

Referenced by ServletResponse::copyFile().

FileConduit getResourceAsFile char[]  path  )  [inline, inherited]
 

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 ServletContext::basePath, ServletContext::checkPath(), and FileConduit.

Referenced by ServletResponse::copyFile().

ServletContext log char[]  msg  )  [inline, inherited]
 

Send an informational message to the logger subsystem

Definition at line 359 of file ServletContext.d.

References Logger::info(), and ServletContext::logger.

Referenced by ServletContext::this().

ServletContext log char[]  msg,
Object  error
[inline, inherited]
 

Send a error message to the logger subsystem

Definition at line 371 of file ServletContext.d.

References Logger::error(), and ServletContext::logger.

char [] getServerInfo  )  [inline, inherited]
 

Return the identity of this server

Definition at line 383 of file ServletContext.d.

References ServletContext::ServerIdentity.

ServletContext checkPath char[]  path  )  [inline, inherited]
 

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.

References ServletContext::irp, and Text.

Referenced by ServletContext::getResourceAsFile().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:37 2005 for Mango by  doxygen 1.4.0