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
-
ATTR_MIRRORS
- Attribute index - The site we are mirroring.
-
mirrors
-
-
MirrorFrame()
-
-
dupReply(Request, Reply)
-
-
dupRequest(Request)
-
-
getMirrors()
- Get the mirrors site attribute value.
-
initialize(Object[])
- Initialize the frames of that framed resource.
-
lookupOther(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
MirrorFrame
public MirrorFrame()
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 HTTPFrame
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
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
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
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