com.ecyrd.jspwiki.filters
Class SpamFilter

java.lang.Object
  extended by com.ecyrd.jspwiki.filters.BasicPageFilter
      extended by com.ecyrd.jspwiki.filters.SpamFilter
All Implemented Interfaces:
PageFilter

public class SpamFilter
extends BasicPageFilter

A regular expression-based spamfilter that can also do choke modifications. Parameters:

Since:
2.1.112
Author:
Janne Jalkanen

Field Summary
static String PROP_BANTIME
           
static String PROP_BLACKLIST
           
static String PROP_ERRORPAGE
           
static String PROP_PAGECHANGES
           
static String PROP_WORDLIST
           
 
Constructor Summary
SpamFilter()
           
 
Method Summary
 void initialize(Properties properties)
          Is called whenever the a new PageFilter is instantiated and reset.
 String preSave(WikiContext context, String content)
          This method is called before the page has been saved to the PageProvider.
 
Methods inherited from class com.ecyrd.jspwiki.filters.BasicPageFilter
postSave, postTranslate, preTranslate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_WORDLIST

public static final String PROP_WORDLIST
See Also:
Constant Field Values

PROP_ERRORPAGE

public static final String PROP_ERRORPAGE
See Also:
Constant Field Values

PROP_PAGECHANGES

public static final String PROP_PAGECHANGES
See Also:
Constant Field Values

PROP_BANTIME

public static final String PROP_BANTIME
See Also:
Constant Field Values

PROP_BLACKLIST

public static final String PROP_BLACKLIST
See Also:
Constant Field Values
Constructor Detail

SpamFilter

public SpamFilter()
Method Detail

initialize

public void initialize(Properties properties)
Description copied from interface: PageFilter
Is called whenever the a new PageFilter is instantiated and reset.

Specified by:
initialize in interface PageFilter
Overrides:
initialize in class BasicPageFilter

preSave

public String preSave(WikiContext context,
                      String content)
               throws RedirectException
Description copied from interface: PageFilter
This method is called before the page has been saved to the PageProvider.

Specified by:
preSave in interface PageFilter
Overrides:
preSave in class BasicPageFilter
Throws:
RedirectException