|
||||||||||
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. |
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.Contextualizable
org.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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public boolean isAllowIp()
isAllowIp
in interface IpRestrictorInterface
public org.apache.avalon.framework.configuration.Configuration getConfig()
public String getBaseDirectory()
public void initialize() throws Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
Exception
public void reload() throws IOException
reload
in interface IpRestrictorInterface
IOException
public 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 |