|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.remote.IpRestrictor
public class 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
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 IpRestrictorInterfacejava.io.IOException
public void save()
throws java.io.IOException
save in interface IpRestrictorInterfacejava.io.IOExceptionpublic boolean hasPermission(java.net.InetAddress addr)
hasPermission in interface IpRestrictorInterfacepublic void clear()
clear in interface IpRestrictorInterfacepublic void addEntry(java.lang.String str)
addEntry in interface IpRestrictorInterfacepublic void removeEntry(java.lang.String str)
removeEntry in interface IpRestrictorInterfacepublic java.util.Collection getAllEntries()
getAllEntries in interface IpRestrictorInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||