All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.proxy.MirrorFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.proxy.ForwardFrame
                                                           |
                                                           +----org.w3c.jigsaw.proxy.MirrorFrame

public class MirrorFrame
extends ForwardFrame

Variable Index

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

Constructor Index

 o MirrorFrame()

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 frames of that framed resource.
 o lookupOther(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 MirrorFrame
 public MirrorFrame()

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 HTTPFrame
 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 ForwardFrame
 o dupRequest
 protected Request dupRequest(Request request) throws HTTPException, IOException
Duplicate a server side request into a client side request.

Overrides:
dupRequest in class ForwardFrame
 o lookupOther
 public boolean lookupOther(LookupState ls,
                            LookupResult lr) throws ProtocolException
Lookup for a mirrored resource.

Parameters:
request - The request whose URI is to be looked up.
Overrides:
lookupOther in class HTTPFrame
 o initialize
 public void initialize(Object values[])
Initialize the frames of that framed resource.

Overrides:
initialize in class ForwardFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index