Class w3c.jigsaw.resources.VirtualHostResource
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.VirtualHostResource

java.lang.Object
   |
   +----w3c.jigsaw.resources.AttributeHolder
           |
           +----w3c.jigsaw.resources.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.FilteredResource
                                   |
                                   +----w3c.jigsaw.resources.ContainerResource
                                           |
                                           +----w3c.jigsaw.resources.DirectoryResource
                                                   |
                                                   +----w3c.jigsaw.resources.VirtualHostResource

public class VirtualHostResource
extends DirectoryResource

Variable Index

 o ATTR_DIRECTORY
Attribute index - The directory we are attached to.
 o ATTR_FOLLOWUP
Attribute index - The default root (for unknown hosts)
 o ATTR_HOSTS
Attribute index - The list of virtual host we handle.
 o defs
 o followup

Constructor Index

 o VirtualHostResource()

Method Index

 o createDefaultResource(String)
Create a default resource for that container.
 o getFollowup()
Get the name of the resource used as a followup.
 o initialize(Object[])
Initialize this directory resource with the given set of attributes.
 o lookup(LookupState, LookupResult)
Lookup the virtual host resource to continue lookup.
 o lookupFollowup()
Lookup the followup resource.
 o lookupStore(String)
Resolve the given name in our store.
 o perform(Request, HTTPFilter[])
Perform requests on a directory.

Variables

 o ATTR_HOSTS
  protected static int ATTR_HOSTS
Attribute index - The list of virtual host we handle.
 o ATTR_FOLLOWUP
  protected static int ATTR_FOLLOWUP
Attribute index - The default root (for unknown hosts)
 o ATTR_DIRECTORY
  protected static int ATTR_DIRECTORY
Attribute index - The directory we are attached to.
 o followup
  protected HTTPResource followup
 o defs
  protected Hashtable defs

Constructors

 o VirtualHostResource
  public VirtualHostResource()

Methods

 o createDefaultResource
  public HTTPResource createDefaultResource(String name)
Create a default resource for that container. This method will just fail, since they are no there is no specific resource class to be attached to that class of resources.
Parameters:
name - The name of the resource to be created.
Returns:
Always null.
Overrides:
createDefaultResource in class DirectoryResource
 o lookupStore
  protected synchronized HTTPResource lookupStore(String host)
Resolve the given name in our store.
Parameters:
name - The name to resolve.
Overrides:
lookupStore in class DirectoryResource
 o getFollowup
  public String getFollowup()
Get the name of the resource used as a followup.
Returns:
A String giving the name of the resource to be used as the default.
 o lookupFollowup
  public synchronized HTTPResource lookupFollowup()
Lookup the followup resource.
Returns:
The loaded resource for the current followup.
 o lookup
  public boolean lookup(LookupState ls,
                        LookupResult lr) throws HTTPException
Lookup the virtual host resource to continue lookup. This is one of the neatest piece of code that Jigsaw allows you to write.
Overrides:
lookup in class DirectoryResource
 o perform
  public Reply perform(Request request,
                       HTTPFilter filters[]) throws HTTPException, ClientException
Perform requests on a directory.
Overrides:
perform in class DirectoryResource
 o initialize
  public void initialize(Object values[])
Initialize this directory resource with the given set of attributes.
Overrides:
initialize in class DirectoryResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index