    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

##

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

##

GrepPutFilter()

##

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

##

forbiddenBytes

     protected GrepPutFilter. ByteArrayComp forbiddenBytes[]

ATTR_FORBIDSTRING_ARRAY

     protected static int ATTR_FORBIDSTRING_ARRAY

  Attribute index - The strings to grep.

ATTR_REDIRECT

     protected static int ATTR_REDIRECT

  Attribute index - The url to redirect.

##

GrepPutFilter

     public GrepPutFilter()

##

getForbiddenStrings

     protected String[] getForbiddenStrings()

getRedirectURL

     protected String getRedirectURL()

getForbiddenBytes

     protected GrepPutFilter. ByteArrayComp[] getForbiddenBytes()

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

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.

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