org.apache.ftpserver.ip
Interface IpRestrictorInterface

All Known Implementing Classes:
AbstractIpRestrictor

public interface IpRestrictorInterface

IP Restrictor interface

Author:
Rana Bhattacharyya

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void addEntry(java.lang.String str)
          Add new entry
 void clear()
          Clear all entries.
 java.util.Collection getAllEntries()
          Get all entries
 boolean hasPermission(java.net.InetAddress addr)
          Check IP permission.
 boolean isAllowIp()
          Allow/ban the listed IPs flag.
 void reload()
          Reload data from store.
 void removeEntry(java.lang.String str)
          Remove entry
 void save()
          Save data into store.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

isAllowIp

public boolean isAllowIp()
Allow/ban the listed IPs flag.


reload

public void reload()
            throws java.io.IOException
Reload data from store.

Throws:
java.io.IOException

save

public void save()
          throws java.io.IOException
Save data into store.

Throws:
java.io.IOException

hasPermission

public boolean hasPermission(java.net.InetAddress addr)
Check IP permission.


clear

public void clear()
Clear all entries.


addEntry

public void addEntry(java.lang.String str)
Add new entry


removeEntry

public void removeEntry(java.lang.String str)
Remove entry


getAllEntries

public java.util.Collection getAllEntries()
Get all entries



Copyright © 2001-2007 Codehaus. All Rights Reserved.