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)
 o dupRequest(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
Parameters:
request - the incomming request
rep - the client reply
Returns:
A Reply instance
Throws: HTTPException
if processing the request failed.
Throws: IOException
if an IO error occurs.
Overrides:
dupReply in class ForwardFrame
 o dupRequest
 protected Request dupRequest(Request request) throws HTTPException, IOException
Parameters:
request - the incomming request
Returns:
A client Request instance.
Throws: HTTPException
if processing the request failed.
Throws: IOException
if an IO error occurs.
Overrides:
dupRequest in class ForwardFrame
 o lookupOther
 public boolean lookupOther(LookupState ls,
                            LookupResult lr) throws ProtocolException
Lookup for a mirrored resource.

Parameters:
ls - The current lookup state
lr - The result
Returns:
true if lookup is done.
Throws: ProtocolException
If an error relative to the protocol occurs
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