    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.

##

ATTR_MIRRORS
  Attribute index - The site we are mirroring.
mirrors

##

MirrorDirectory()

##

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

##

ATTR_MIRRORS

     protected static int ATTR_MIRRORS

  Attribute index - The site we are mirroring.

mirrors

     protected URL mirrors

##

MirrorDirectory

     public MirrorDirectory()

##

getMirrors

     public String getMirrors()

  Get the mirrors site attribute value.

  Returns:
    The String encoded URL of the site we are mirroring here.

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

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

dupRequest

     protected Request dupRequest(Request request) throws HTTPException, IOException

  Duplicate a server side request into a client side request.

  Overrides:
    dupRequest in class ForwardDirectory

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

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