|
||||||||||
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.LinkSpamListener
public class LinkSpamListener
Checks comment and TrackBack content for a large number of links and sets the state of such responses to pending.
Field Summary | |
---|---|
static java.lang.String |
COMMENT_THRESHOLD_KEY
the name of the threshold property for comments |
static int |
DEFAULT_THRESHOLD
the default threshold for the number of links allowed |
static java.lang.String |
TRACKBACK_THRESHOLD_KEY
the name of the threshold property for TrackBacks |
Constructor Summary | |
---|---|
LinkSpamListener()
|
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 int DEFAULT_THRESHOLD
public static final java.lang.String COMMENT_THRESHOLD_KEY
public static final java.lang.String TRACKBACK_THRESHOLD_KEY
Constructor Detail |
---|
public LinkSpamListener()
Method Detail |
---|
protected void blogEntryResponseAdded(Response response)
blogEntryResponseAdded
in class BlogEntryResponseListenerSupport
response
- a Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |