All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.filters.GrepPutFilter

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.PutFilter
                                                   |
                                                   +----org.w3c.jigsaw.filters.GrepPutFilter

public class GrepPutFilter
extends PutFilter

Variable Index

 o ATTR_FORBIDSTRING_ARRAY
Attribute index - The strings to grep.
 o ATTR_REDIRECT
Attribute index - The url to redirect.
 o forbiddenBytes

Constructor Index

 o GrepPutFilter()

Method Index

 o getForbiddenBytes()
 o getForbiddenStrings()
 o getRedirectURL()
 o ingoingFilter(RequestInterface)
Search the forbidden string in the body, if found return an ACCES FORBIDDEN Reply.
 o searchForbiddenStrings(InputStream)
Searh for a forbidden string in given stream.
 o setValue(int, Object)
Catch assignements to the forbidden strings attribute.

Variables

 o forbiddenBytes
 protected GrepPutFilter. ByteArrayComp forbiddenBytes[]
 o ATTR_FORBIDSTRING_ARRAY
 protected static int ATTR_FORBIDSTRING_ARRAY
Attribute index - The strings to grep.

 o ATTR_REDIRECT
 protected static int ATTR_REDIRECT
Attribute index - The url to redirect.

Constructors

 o GrepPutFilter
 public GrepPutFilter()

Methods

 o getForbiddenStrings
 protected String[] getForbiddenStrings()
 o getRedirectURL
 protected String getRedirectURL()
 o getForbiddenBytes
 protected GrepPutFilter. ByteArrayComp[] getForbiddenBytes()
 o setValue
 public void setValue(int idx,
                      Object value)
Catch assignements to the forbidden strings attribute.

When a change to that attribute is detected, the cached value are updated.

Overrides:
setValue in class PutFilter
 o searchForbiddenStrings
 protected String searchForbiddenStrings(InputStream in)
Searh for a forbidden string in given stream.

Parameters:
in - the InputStream
Returns:
The String found or null if none was found.
 o ingoingFilter
 public ReplyInterface ingoingFilter(RequestInterface req)
Search the forbidden string in the body, if found return an ACCES FORBIDDEN Reply.

Parameters:
request - The request that is about to be processsed.
Overrides:
ingoingFilter in class PutFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index