|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.filter.HtmlFilter rabbit.filter.SimpleTagFilter rabbit.filter.BodyFilter
public class BodyFilter
A class that inserts some text and links at the top of a page. Useful for inserting links to unfiltered page.
Field Summary |
---|
Fields inherited from class rabbit.filter.HtmlFilter |
---|
con, request, response |
Constructor Summary | |
---|---|
BodyFilter()
|
|
BodyFilter(Connection con,
HttpHeader request,
HttpHeader response)
Create a new BodyFilter for the given request, response pair. |
Method Summary | |
---|---|
void |
filterHtml(HtmlBlock block)
Insert some text at the top of the html page. |
void |
handleTag(Tag tag,
HtmlBlock block,
int tokenIndex)
Handle a tag. |
protected int |
insertTokens(HtmlBlock block,
int pos)
Insert the links in an ordered fashion. |
HtmlFilter |
newFilter(Connection con,
HttpHeader request,
HttpHeader response)
Get a new HtmlFilter for the given request, response pair. |
Methods inherited from class rabbit.filter.HtmlFilter |
---|
isCacheable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BodyFilter()
public BodyFilter(Connection con, HttpHeader request, HttpHeader response)
con
- the Connection handling the request.request
- the actual request made.response
- the actual response being sent.Method Detail |
---|
public HtmlFilter newFilter(Connection con, HttpHeader request, HttpHeader response)
HtmlFilterFactory
con
- the Connection handling the request.request
- the actual request made.response
- the actual response being sent.public void filterHtml(HtmlBlock block)
filterHtml
in class SimpleTagFilter
block
- the part of the html page we are filtering.public void handleTag(Tag tag, HtmlBlock block, int tokenIndex)
SimpleTagFilter
handleTag
in class SimpleTagFilter
tag
- the Tag to handle.block
- the current HtmlBlocktokenIndex
- the index of the current Tokenprotected int insertTokens(HtmlBlock block, int pos)
block
- the html block were filtering.pos
- the position in the block were inserting stuff at.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |