All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.proxy.ProxyFrame

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.ProxyFrame

public class ProxyFrame
extends ForwardFrame
A proxy module for Jigsaw.


Variable Index

 o ATTR_HANDLEFTP
Attribute index - Should we tunnel ftp accesses ?

Constructor Index

 o ProxyFrame()

Method Index

 o checkHandleFTP()
Do we handle ftp ?
 o initialize(Object[])
Update the URL in which we are installed.
 o lookup(LookupState, LookupResult)
do the normal lookup, and set the proxy boolean flag if needed
 o lookupOther(LookupState, LookupResult)
Lookup for an proxied resource.
 o registerResource(FramedResource)
companion to initialize, called after the register
 o setValue(int, Object)
Trap changes to the handleftp attribute.

Variables

 o ATTR_HANDLEFTP
 protected static int ATTR_HANDLEFTP
Attribute index - Should we tunnel ftp accesses ?

Constructors

 o ProxyFrame
 public ProxyFrame()

Methods

 o setValue
 public void setValue(int idx,
                      Object value)
Trap changes to the handleftp attribute.

Parameters:
idx - The attribute being set.
value - The new value for that attribute.
Overrides:
setValue in class HTTPFrame
 o checkHandleFTP
 public boolean checkHandleFTP()
Do we handle ftp ?

Returns:
A boolean.
 o lookupOther
 public boolean lookupOther(LookupState ls,
                            LookupResult lr) throws ProtocolException
Lookup for an proxied resource.

Parameters:
request - The request whose URI is to be looked up.
ls - The current lookup state
lr - The result
Throws: ProtocolException
If something fails.
Overrides:
lookupOther in class HTTPFrame
 o lookup
 public boolean lookup(LookupState ls,
                       LookupResult lr) throws ProtocolException
do the normal lookup, and set the proxy boolean flag if needed

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:
lookup in class HTTPFrame
 o registerResource
 public void registerResource(FramedResource resource)
companion to initialize, called after the register

Overrides:
registerResource in class ForwardFrame
 o initialize
 public void initialize(Object values[])
Update the URL in which we are installed.

Parameters:
values - The default attribute values.
Overrides:
initialize in class ForwardFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index