All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.ResourceContext

java.lang.Object
   |
   +----w3c.jigsaw.resources.ResourceContext

public class ResourceContext
extends Object

Variable Index

 o modules
The set of registered modules.
 o parent
Our parent context, if any.
 o server
The server context of that resource context.

Constructor Index

 o ResourceContext(httpd)
 o ResourceContext(ResourceContext)

Method Index

 o getModule(String)
Lookup a module within that context, and up the hierarchy of contexts.
 o getModule(String, boolean)
Lookup a module within that resource context.
 o getParent()
Get that context's ancestor.
 o getServer()
Get the server this context is attached to.
 o registerModule(String, Object)
Register a module within that resource context.

Variables

 o parent
 protected ResourceContext parent
Our parent context, if any.

 o modules
 public Hashtable modules
The set of registered modules.

 o server
 protected httpd server
The server context of that resource context.

Constructors

 o ResourceContext
 public ResourceContext(ResourceContext parent)
 o ResourceContext
 public ResourceContext(httpd server)

Methods

 o getServer
 public httpd getServer()
Get the server this context is attached to.

Returns:
An httpd instance (guaranteed not to be null.
 o getParent
 public ResourceContext getParent()
Get that context's ancestor.

Returns:
A ResourceContext instance, or null.
 o registerModule
 public synchronized void registerModule(String name,
                                         Object impl)
Register a module within that resource context.

Parameters:
name - The module's name.
impl - The module's implementation.
 o getModule
 public Object getModule(String name,
                         boolean inherited)
Lookup a module within that resource context.

Parameters:
name - Name of the module to look for.
inherited - Also look within the contexts hierarchy for an inherited module having that name.
 o getModule
 public Object getModule(String name)
Lookup a module within that context, and up the hierarchy of contexts.

Parameters:
name - The module's name.
Returns:
An object implementing that module.

All Packages  Class Hierarchy  This Package  Previous  Next  Index