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
-
modules
- The set of registered modules.
-
parent
- Our parent context, if any.
-
server
- The server context of that resource context.
-
ResourceContext(httpd)
-
-
ResourceContext(ResourceContext)
-
-
getModule(String)
- Lookup a module within that context, and up the hierarchy of contexts.
-
getModule(String, boolean)
- Lookup a module within that resource context.
-
getParent()
- Get that context's ancestor.
-
getServer()
- Get the server this context is attached to.
-
registerModule(String, Object)
- Register a module within that resource context.
parent
protected ResourceContext parent
- Our parent context, if any.
modules
public Hashtable modules
- The set of registered modules.
server
protected httpd server
- The server context of that resource context.
ResourceContext
public ResourceContext(ResourceContext parent)
ResourceContext
public ResourceContext(httpd server)
getServer
public httpd getServer()
- Get the server this context is attached to.
- Returns:
- An httpd instance (guaranteed not to be null.
getParent
public ResourceContext getParent()
- Get that context's ancestor.
- Returns:
- A ResourceContext instance, or null.
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.
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.
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