|
|||||||||||
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
org.apache.ftpserver.ip.FileIpRestrictor
This class provides IP restriction functionality.
Field Summary |
Fields inherited from class org.apache.ftpserver.ip.AbstractIpRestrictor |
mbAllowIp, mConfig |
Fields inherited from interface org.apache.ftpserver.ip.IpRestrictorInterface |
ROLE |
Constructor Summary | |
FileIpRestrictor()
|
Method Summary | |
void |
addEntry(java.lang.String entry)
Add a new entry. |
void |
clear()
Remove all entries |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Set application context. |
java.util.Collection |
getAllEntries()
Get all entries |
java.io.File |
getFile()
Get IP resrictor file object. |
boolean |
hasPermission(java.net.InetAddress addr)
Check IP permission. |
void |
reload()
Read the list from the file. |
void |
removeEntry(java.lang.String entry)
Remove entry |
void |
save()
Save this IP restriction list. |
Methods inherited from class org.apache.ftpserver.ip.AbstractIpRestrictor |
configure, dispose, getBaseDirectory, getConfig, initialize, isAllowIp |
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 |
Constructor Detail |
public FileIpRestrictor()
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
contextualize
in class AbstractIpRestrictor
org.apache.avalon.framework.context.ContextException
public void reload() throws java.io.IOException
reload
in interface IpRestrictorInterface
reload
in class AbstractIpRestrictor
java.io.IOException
public java.io.File getFile()
public void save() throws java.io.IOException
java.io.IOException
public boolean hasPermission(java.net.InetAddress addr)
public void addEntry(java.lang.String entry)
public void removeEntry(java.lang.String entry)
public java.util.Collection getAllEntries()
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |