|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.ftpserver.ip.AbstractIpRestrictor
public abstract class AbstractIpRestrictor
Abstract ip restrictor class.
| Field Summary | |
|---|---|
protected boolean |
mbAllowIp
|
protected org.apache.avalon.framework.configuration.Configuration |
mConfig
|
| Fields inherited from interface org.apache.ftpserver.ip.IpRestrictorInterface |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractIpRestrictor()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Configure user manager - third step. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Set context object - first step. |
void |
dispose()
Close user manager - dummy implementation. |
java.lang.String |
getBaseDirectory()
|
org.apache.avalon.framework.configuration.Configuration |
getConfig()
Get config object. |
void |
initialize()
Initialize - fourth step. |
boolean |
isAllowIp()
Get allow/ban IP flag. |
void |
reload()
Reload banned ip list - dummy implementation |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ftpserver.ip.IpRestrictorInterface |
|---|
addEntry, clear, getAllEntries, hasPermission, removeEntry, save |
| Field Detail |
|---|
protected org.apache.avalon.framework.configuration.Configuration mConfig
protected boolean mbAllowIp
| Constructor Detail |
|---|
public AbstractIpRestrictor()
| Method Detail |
|---|
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextException
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic boolean isAllowIp()
isAllowIp in interface IpRestrictorInterfacepublic org.apache.avalon.framework.configuration.Configuration getConfig()
public java.lang.String getBaseDirectory()
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.Exception
public void reload()
throws java.io.IOException
reload in interface IpRestrictorInterfacejava.io.IOExceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||