Class w3c.jigsaw.proxy.ForwardDirectory
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.proxy.ForwardDirectory

java.lang.Object
   |
   +----w3c.jigsaw.resources.AttributeHolder
           |
           +----w3c.jigsaw.resources.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.proxy.ForwardDirectory

public class ForwardDirectory
extends HTTPResource
A proxy module for Jigsaw. This is really a proof-of-conpcept thing. It will no actually do any caching right now, although plans are to use the w3c.tools.dbm package to maintain a database of cached resources.

It heavily relies on java net's library to do the client side of the proxy handling, which might not be the right thing to do for the time being.


Variable Index

 o ATTR_LOCAL_ROOT
Attribute index - The local resource, if server-wide request.
 o ATTR_RECEIVED_BY
Attribute index - The received by attribute of that proxy.
 o lroot
Get the local root resource to use for internal requests.

Constructor Index

 o ForwardDirectory()

Method Index

 o dupReply(Request, Reply)
 o dupRequest(Request)
Duplicate a server side request into a client side request.
 o getLocalRoot()
Get the local root resource name.
 o getLocalRootResource()
 o getReceivedBy()
Get the received by attribute value.
 o getVia()
 o initialize(Object[])
Initialization method for attribute holders.
 o perform(Request, HTTPFilter[])
Perform the given proxied request.

Variables

 o ATTR_LOCAL_ROOT
  protected static int ATTR_LOCAL_ROOT
Attribute index - The local resource, if server-wide request.
 o ATTR_RECEIVED_BY
  protected static int ATTR_RECEIVED_BY
Attribute index - The received by attribute of that proxy.
 o lroot
  protected HTTPResource lroot
Get the local root resource to use for internal requests.

Constructors

 o ForwardDirectory
  public ForwardDirectory()

Methods

 o getLocalRoot
  public String getLocalRoot()
Get the local root resource name.
 o getReceivedBy
  public String getReceivedBy()
Get the received by attribute value.

If this attribute is not defined, it will default to the name of the host running the proxy.

Returns:
A String.
 o getVia
  public synchronized String getVia()
 o getLocalRootResource
  public synchronized HTTPResource getLocalRootResource()
 o dupRequest
  protected Request dupRequest(Request request) throws HTTPException, IOException
Duplicate a server side request into a client side request.
Parameters:
request - The server side request.
Returns:
A Client side request.
 o dupReply
  protected Reply dupReply(Request request,
                           Reply rep) throws HTTPException, IOException
 o perform
  public Reply perform(Request request,
                       HTTPFilter filters[]) throws HTTPException, ClientException
Perform the given proxied request.
Parameters:
request - The request to perform.
filters - The set of filters to apply.
Returns:
A Reply instance.
Overrides:
perform in class HTTPResource
 o initialize
  public void initialize(Object values[])
Initialization method for attribute holders.
Overrides:
initialize in class AttributeHolder

All Packages  Class Hierarchy  This Package  Previous  Next  Index