|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.filters.BasicPageFilter
public class BasicPageFilter
Provides a base implementation of a PageFilter. None of the methods do anything, so it is a good idea for you to extend from this class and implement only methods that you need.
Constructor Summary | |
---|---|
BasicPageFilter()
|
Method Summary | |
---|---|
void |
initialize(Properties properties)
Is called whenever the a new PageFilter is instantiated and reset. |
void |
postSave(WikiContext wikiContext,
String content)
This method is called after the page has been successfully saved. |
String |
postTranslate(WikiContext wikiContext,
String htmlContent)
This method is called after a page has been fed through the TranslatorReader, so anything you are seeing here is translated content. |
String |
preSave(WikiContext wikiContext,
String content)
This method is called before the page has been saved to the PageProvider. |
String |
preTranslate(WikiContext wikiContext,
String content)
This method is called whenever a page has been loaded from the provider, but not yet been sent through the TranslatorReader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicPageFilter()
Method Detail |
---|
public void initialize(Properties properties) throws FilterException
PageFilter
initialize
in interface PageFilter
FilterException
public String preTranslate(WikiContext wikiContext, String content) throws FilterException
PageFilter
preTranslate
in interface PageFilter
wikiContext
- The current wikicontext.content
- WikiMarkup.
FilterException
public String postTranslate(WikiContext wikiContext, String htmlContent) throws FilterException
PageFilter
postTranslate
in interface PageFilter
FilterException
public String preSave(WikiContext wikiContext, String content) throws FilterException
PageFilter
preSave
in interface PageFilter
FilterException
public void postSave(WikiContext wikiContext, String content) throws FilterException
PageFilter
Since the result is discarded from this method, this is only useful for things like counters, etc.
postSave
in interface PageFilter
FilterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |