rabbit.filter
Class BlinkFilter
java.lang.Object
rabbit.filter.HtmlFilter
rabbit.filter.SimpleTagFilter
rabbit.filter.BlinkFilter
- All Implemented Interfaces:
- HtmlFilterFactory
public class BlinkFilter
- extends SimpleTagFilter
A filter that removes the blink and /blink tags.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlinkFilter
public BlinkFilter()
BlinkFilter
public BlinkFilter(Connection con,
HttpHeader request,
HttpHeader response)
- Create a new BlinkFilter for the given request, response pair.
- Parameters:
con
- the Connection handling the request.request
- the actual request made.response
- the actual response being sent.
newFilter
public HtmlFilter newFilter(Connection con,
HttpHeader request,
HttpHeader response)
- Description copied from interface:
HtmlFilterFactory
- Get a new HtmlFilter for the given request, response pair.
- 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 blink tags.
- Specified by:
handleTag
in class SimpleTagFilter
- Parameters:
block
- the part of the html page we are filtering.tag
- the Tag to handle.tokenIndex
- the index of the current Token