    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.proxy.MirrorDirectory

    java.lang.Object
       |
       +----w3c.jigsaw.resources.AttributeHolder
               |
               +----w3c.jigsaw.resources.Resource
                       |
                       +----w3c.jigsaw.resources.HTTPResource
                               |
                               +----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)
dupRequest(Request)
  Duplicate a server side request into a client side request.
getMirrors()
  Get the mirrors site attribute value.
initialize(Object[])
  Initialization method for attribute holders.
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

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 HTTPResource

initialize

      public void initialize(Object values[])

  Initialization method for attribute holders.
  Overrides:
    initialize in class ForwardDirectory

    All Packages  Class Hierarchy  This Package  Previous  Next  Index