All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.filters.UseProxyFilter

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.ResourceFilter
                                           |
                                           +----org.w3c.jigsaw.filters.UseProxyFilter

public class UseProxyFilter
extends ResourceFilter
Restrict access to a proxy, to acces the protected resource, you must go to a specific proxy. It acts as a demontrator for the HTTP/1.1 spec.


Variable Index

 o ATTR_PROXY
Attribute index - The IP of the proxy

Constructor Index

 o UseProxyFilter()

Method Index

 o ingoingFilter(RequestInterface)
We check for the IP of the incoming request If the IP of the incoming request is not the on of the proxy it returns a Use_Proxy reply
 o initialize(Object[])
Initialize the filter.
 o setValue(int, Object)
We override setValues to compute locally everything we need

Variables

 o ATTR_PROXY
 protected static int ATTR_PROXY
Attribute index - The IP of the proxy

Constructors

 o UseProxyFilter
 public UseProxyFilter()

Methods

 o ingoingFilter
 public synchronized ReplyInterface ingoingFilter(RequestInterface req)
We check for the IP of the incoming request If the IP of the incoming request is not the on of the proxy it returns a Use_Proxy reply

Parameters:
request - The request being processed.
Returns:
null if ok a "Use Proxy" otherwise.
Overrides:
ingoingFilter in class ResourceFilter
 o setValue
 public void setValue(int idx,
                      Object value)
We override setValues to compute locally everything we need

Parameters:
idx - The index of the attribute to modify.
value - The new attribute value.
Overrides:
setValue in class ResourceFrame
 o initialize
 public void initialize(Object values[])
Initialize the filter.

Overrides:
initialize in class FramedResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index