|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.event.response.BlogEntryResponseListenerSupport
net.sourceforge.pebble.event.response.ContentSpamListener
public class ContentSpamListener
Checks comment and TrackBack content for specified regexs and sets the state of such responses to pending. This includes all user-definable fields of the response : title, content, source name and source link. The spam score is incremented for each field that exceeds the threshold.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_REGEX_LIST
the default regex list |
static int |
DEFAULT_THRESHOLD
the default threshold for the number of content matches |
static java.lang.String |
REGEX_LIST_KEY
the name of the regex list property |
static java.lang.String |
THRESHOLD_KEY
the name of the threshold property |
| Constructor Summary | |
|---|---|
ContentSpamListener()
|
|
| Method Summary | |
|---|---|
protected void |
blogEntryResponseAdded(Response response)
Called when a comment or TrackBack has been added. |
| Methods inherited from class net.sourceforge.pebble.event.response.BlogEntryResponseListenerSupport |
|---|
blogEntryResponseApproved, blogEntryResponseRejected, blogEntryResponseRemoved, commentAdded, commentApproved, commentRejected, commentRemoved, trackBackAdded, trackBackApproved, trackBackRejected, trackBackRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_REGEX_LIST
public static final int DEFAULT_THRESHOLD
public static final java.lang.String REGEX_LIST_KEY
public static final java.lang.String THRESHOLD_KEY
| Constructor Detail |
|---|
public ContentSpamListener()
| Method Detail |
|---|
protected void blogEntryResponseAdded(Response response)
blogEntryResponseAdded in class BlogEntryResponseListenerSupportresponse - a Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||