hirondelle.web4j.security
Class SpamDetectorImpl
Object
hirondelle.web4j.security.SpamDetectorImpl
- All Implemented Interfaces:
- SpamDetector
public class SpamDetectorImpl
- extends Object
- implements SpamDetector
Fails all text containing links, except those appearing in
wiki-style formatting.
Almost all spam contains links. This implementation will reject all text that contains
'http://', except if the text contains any wiki-style links in the form
[link:http://www.google.ca Google].
Method Summary |
boolean |
isSpam(String aText)
See class comment. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpamDetectorImpl
public SpamDetectorImpl()
isSpam
public boolean isSpam(String aText)
- See class comment.
- Specified by:
isSpam
in interface SpamDetector
- Parameters:
aText
- value of a request parameter.
Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.