Main Page | Class Hierarchy | Alphabetical List | Class List | 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)
 this (char[] name, char[] basePath)
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

 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.

this  )  [inline, static, inherited]
 

Initialize the mime-map and the servlet logging instance

Definition at line 186 of file ServletContext.d.

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

this char[]  name  )  [inline, inherited]
 

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

Definition at line 208 of file ServletContext.d.

this char[]  name,
char[]  basePath
[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 221 of file ServletContext.d.

References ServletContext::basePath.

char [] getName  )  [inline, inherited]
 

Return the name of this context.

Definition at line 246 of file ServletContext.d.

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

synchronized Dictionary getAttributes  )  [inline, inherited]
 

Return the attributes of this context

Definition at line 257 of file ServletContext.d.

References ServletContext::attributes.

synchronized Dictionary getConfiguration  )  [inline, inherited]
 

Return the current configuration of this context

Definition at line 268 of file ServletContext.d.

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

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

Definition at line 280 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 293 of file ServletContext.d.

int getMajorVersion  )  [inline, inherited]
 

Return the major version number.

Definition at line 305 of file ServletContext.d.

int getMinorVersion  )  [inline, inherited]
 

Return the minor number.

Definition at line 316 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 328 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 343 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 355 of file ServletContext.d.

References Logger::info().

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

Send a error message to the logger subsystem

Definition at line 367 of file ServletContext.d.

References Logger::error().

char [] getServerInfo  )  [inline, inherited]
 

Return the identity of this server

Definition at line 379 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 392 of file ServletContext.d.

References ServletContext::irp.

Referenced by ServletContext::getResourceAsFile().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:06:59 2004 for Mango by doxygen 1.3.6