|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.filter.HTMLFilter
rabbit.filter.SimpleTagFilter
rabbit.filter.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 |
request, response |
| Constructor Summary | |
BodyFilter(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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BodyFilter(HTTPHeader request,
HTTPHeader response)
request - the actual request made.response - the actual response being sent.| Method Detail |
public void filterHTML(HTMLBlock block)
filterHTML in class SimpleTagFilterblock - the part of the html page we are filtering.
public void handleTag(Tag tag,
HTMLBlock block,
int tokenIndex)
SimpleTagFilter
handleTag in class SimpleTagFiltertag - the Tag to handle.block - the current HTMLBlocktokenIndex - the index of the current Token
protected 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 | |||||||||