Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.filter
Class BackgroundFilter

    java.lang.Object
      rabbit.filter.HTMLFilter
          rabbit.filter.SimpleTagFilter
              rabbit.filter.BackgroundFilter

All Implemented Interfaces:
  HTMLFilterFactory

    public class BackgroundFilter

extends SimpleTagFilter

This class removes background images from html pages.

Field Summary

Fields inherited from class rabbit.filter.HTMLFilter
`con, request, response`

Constructor Summary
`BackgroundFilter()`
`BackgroundFilter(Connection con, HTTPHeader request, HTTPHeader response)` Create a new BackgroundFilter for the given request, response pair.

Method Summary
`void` | `handleTag(Tag tag, HTMLBlock block, int tokenIndex)` Remove background images from the given block.
`HTMLFilter` | `newFilter(Connection con, HTTPHeader request, HTTPHeader response)` Get a new HTMLFilter for the given request, response pair.

Methods inherited from class rabbit.filter.SimpleTagFilter
`filterHTML`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BackgroundFilter

    public BackgroundFilter()

### BackgroundFilter

    public BackgroundFilter(Connection con,
                            HTTPHeader request,
                            HTTPHeader response)

  Create a new BackgroundFilter for the given request, response pair.

  Parameters:
    `con` - the Connection handling the request.
    `request` - the actual request made.
    `response` - the actual response being sent.

Method Detail

### newFilter

    public HTMLFilter newFilter(Connection con,
                                HTTPHeader request,
                                HTTPHeader response)

  Description copied from class: `HTMLFilter`
  Get a new HTMLFilter for the given request, response pair.

  Specified by:
    `newFilter` in interface `HTMLFilterFactory`
  Specified by:
    `newFilter` in class `HTMLFilter`
  Parameters:
    `con` - the Connection handling the request.
    `request` - the actual request made.
    `response` - the actual response being sent.

### handleTag

    public void handleTag(Tag tag,
                          HTMLBlock block,
                          int tokenIndex)

  Remove background images from the given block.

  Specified by:
    `handleTag` in class `SimpleTagFilter`
  Parameters:
    `tag` - the current Tag
    `block` - the current HTMLBlock
    `tokenIndex` - the index of the current Token

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD