|
||||||||||
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.IpAddressListener
public class IpAddressListener
Checks comment and TrackBack IP address against a whitelist and a blacklist. If in the whitelist, the response is left as-is. If in the blacklist, the response is set to pending and the spam score incremented by 1 point. If in neither, the response is set to pending but the spam score isn't increased. This allows responses from new IP addresses to be manually verified before publication.
Field Summary | |
---|---|
static java.lang.String |
BLACKLIST_KEY
the name of the blacklist property |
static java.lang.String |
WHITELIST_KEY
the name of the whitelist property |
Constructor Summary | |
---|---|
IpAddressListener()
|
Method Summary | |
---|---|
protected void |
blogEntryResponseAdded(Response response)
Called when a comment or TrackBack has been added. |
protected void |
blogEntryResponseApproved(Response response)
Called when a comment or TrackBack has been approved. |
protected void |
blogEntryResponseRejected(Response response)
Called when a comment or TrackBack has been rejected. |
Methods inherited from class net.sourceforge.pebble.event.response.BlogEntryResponseListenerSupport |
---|
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 WHITELIST_KEY
public static final java.lang.String BLACKLIST_KEY
Constructor Detail |
---|
public IpAddressListener()
Method Detail |
---|
protected void blogEntryResponseAdded(Response response)
blogEntryResponseAdded
in class BlogEntryResponseListenerSupport
response
- a Responseprotected void blogEntryResponseApproved(Response response)
blogEntryResponseApproved
in class BlogEntryResponseListenerSupport
response
- a Responseprotected void blogEntryResponseRejected(Response response)
blogEntryResponseRejected
in class BlogEntryResponseListenerSupport
response
- a Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |