|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.common.IPBanningPlugin
IPBanningPlugin
Field Summary | |
protected org.apache.commons.logging.Log |
_logger
|
protected static java.lang.String |
BANNED_IP_ADDRESSES_IP
|
Constructor Summary | |
IPBanningPlugin()
|
Method Summary | |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialize this plugin. |
protected boolean |
isIPBanned(java.lang.String[] bannedIPList,
java.lang.String ipAddress)
Checks to see whether the incoming IP address is banned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.blojsom.plugin.BlojsomPlugin |
cleanup, destroy, process |
Field Detail |
protected org.apache.commons.logging.Log _logger
protected static final java.lang.String BANNED_IP_ADDRESSES_IP
Constructor Detail |
public IPBanningPlugin()
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomPluginException
init
in interface BlojsomPlugin
servletConfig
- Servlet config object for the plugin to retrieve any initialization parametersblojsomConfiguration
- BlojsomConfiguration
information
BlojsomPluginException
- If there is an error initializing the pluginprotected boolean isIPBanned(java.lang.String[] bannedIPList, java.lang.String ipAddress)
false
.
Otherwise, if the incoming IP address matches one of the banned IP address regular expressions
the method will return true
.
bannedIPList
- ipAddress
-
true
if the IP address is banned, false
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |