|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.remote.IpRestrictor
IP Restrictor remotr adapter class. Used by admin GUI.
Constructor Summary | |
IpRestrictor(IpRestrictorInterface ipRestrictor)
Constructor - sets the actual ip restrictor object |
Method Summary | |
void |
addEntry(java.lang.String str)
Add new entry |
void |
clear()
Clear all entries. |
IpRestrictorInterface |
getActualObject()
Get the actual object. |
java.util.Collection |
getAllEntries()
Get all entries |
boolean |
hasPermission(java.net.InetAddress addr)
Check IP permission. |
boolean |
isAllowIp()
Allow/ban IP flag |
void |
reload()
Reload data from store. |
void |
removeEntry(java.lang.String str)
Remove entry |
void |
save()
Save data into store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IpRestrictor(IpRestrictorInterface ipRestrictor) throws java.rmi.RemoteException
Method Detail |
public IpRestrictorInterface getActualObject()
public boolean isAllowIp()
isAllowIp
in interface IpRestrictorInterface
public void reload() throws java.io.IOException
reload
in interface IpRestrictorInterface
java.io.IOException
public void save() throws java.io.IOException
save
in interface IpRestrictorInterface
java.io.IOException
public boolean hasPermission(java.net.InetAddress addr)
hasPermission
in interface IpRestrictorInterface
public void clear()
clear
in interface IpRestrictorInterface
public void addEntry(java.lang.String str)
addEntry
in interface IpRestrictorInterface
public void removeEntry(java.lang.String str)
removeEntry
in interface IpRestrictorInterface
public java.util.Collection getAllEntries()
getAllEntries
in interface IpRestrictorInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |