    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.

##

ATTR_PROXY
  Attribute index - The IP of the proxy

##

UseProxyFilter()

##

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
initialize(Object[])
  Initialize the filter.
setValue(int, Object)
  We override setValues to compute locally everything we need

##

ATTR_PROXY

     protected static int ATTR_PROXY

  Attribute index - The IP of the proxy

##

UseProxyFilter

     public UseProxyFilter()

##

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

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

initialize

     public void initialize(Object values[])

  Initialize the filter.

  Overrides:
    initialize in class FramedResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index