HowToWriteAFilter

How to write a page filter

See also:

See the starting point for developing custom page filters to create a maven project holding the custom filter.

Code#

PageFilter provides five methods:

PageFilter offers empty default methods for the last four of the above, so you can focus on the events you want to process.

Caveats#

BasicPageFilter#

Most of the time, the only thing done on the initialize(..) method is to store a reference to the Engine received. If you want to skip this step, instead of implementing PageFilter, you cand extend from BasicPageFilter, which does exactly this.

Unit testing#

See JSPWikiPublicAPI#Testing

Package #

Deploy#

Category.Documentation