All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.proxy.MirrorDirectory

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.FilteredResource
                                   |
                                   +----w3c.jigsaw.proxy.ForwardDirectory
                                           |
                                           +----w3c.jigsaw.proxy.MirrorDirectory

public class MirrorDirectory
extends ForwardDirectory
Mirror a whole site, right there.


Variable Index

 o ATTR_MIRRORS
Attribute index - The site we are mirroring.
 o mirrors

Constructor Index

 o MirrorDirectory()

Method Index

 o dupReply(Request, Reply)
Duplicate the given client side reply into a server side one.
 o dupRequest(Request)
Duplicate a server side request into a client side request.
 o getMirrors()
Get the mirrors site attribute value.
 o initialize(Object[])
Initialize the filters of that filtered resource.
 o lookup(LookupState, LookupResult)
Lookup for a mirrored resource.
 o setValue(int, Object)
Catch assignment to the mirror attribute, to update our cached URL.

Variables

 o ATTR_MIRRORS
 protected static int ATTR_MIRRORS
Attribute index - The site we are mirroring.

 o mirrors
 protected URL mirrors

Constructors

 o MirrorDirectory
 public MirrorDirectory()

Methods

 o getMirrors
 public String getMirrors()
Get the mirrors site attribute value.

Returns:
The String encoded URL of the site we are mirroring here.
 o setValue
 public void setValue(int idx,
                      Object value)
Catch assignment to the mirror attribute, to update our cached URL.

Parameters:
idx - The slot to set.
value - It's new value.
Overrides:
setValue in class HTTPResource
 o dupReply
 protected Reply dupReply(Request request,
                          Reply rep) throws HTTPException, IOException
Duplicate the given client side reply into a server side one.

Overrides:
dupReply in class ForwardDirectory
 o dupRequest
 protected Request dupRequest(Request request) throws HTTPException, IOException
Duplicate a server side request into a client side request.

Overrides:
dupRequest in class ForwardDirectory
 o lookup
 public boolean lookup(LookupState ls,
                       LookupResult lr) throws HTTPException
Lookup for a mirrored resource.

Parameters:
request - The request whose URI is to be looked up.
Throws: HTTPException
If something fails.
Overrides:
lookup in class FilteredResource
 o initialize
 public void initialize(Object values[])
Initialize the filters of that filtered resource.

Overrides:
initialize in class ForwardDirectory

All Packages  Class Hierarchy  This Package  Previous  Next  Index