net.sourceforge.pebble.event.response
Class LinkSpamListener

java.lang.Object
  extended by net.sourceforge.pebble.event.response.BlogEntryResponseListenerSupport
      extended by net.sourceforge.pebble.event.response.LinkSpamListener
All Implemented Interfaces:
CommentListener, TrackBackListener

public class LinkSpamListener
extends BlogEntryResponseListenerSupport

Checks comment and TrackBack content for a large number of links and sets the state of such responses to pending.

Author:
Simon Brown

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

DEFAULT_THRESHOLD

public static final int DEFAULT_THRESHOLD
the default threshold for the number of links allowed

See Also:
Constant Field Values

COMMENT_THRESHOLD_KEY

public static final java.lang.String COMMENT_THRESHOLD_KEY
the name of the threshold property for comments

See Also:
Constant Field Values

TRACKBACK_THRESHOLD_KEY

public static final java.lang.String TRACKBACK_THRESHOLD_KEY
the name of the threshold property for TrackBacks

See Also:
Constant Field Values
Constructor Detail

LinkSpamListener

public LinkSpamListener()
Method Detail

blogEntryResponseAdded

protected void blogEntryResponseAdded(Response response)
Called when a comment or TrackBack has been added.

Overrides:
blogEntryResponseAdded in class BlogEntryResponseListenerSupport
Parameters:
response - a Response


Copyright © 2003-2006, Simon Brown. All Rights Reserved.