org.apache.ftpserver.ip
Interface IpRestrictorInterface

All Known Implementing Classes:
AbstractIpRestrictor, FileIpRestrictor

public interface IpRestrictorInterface

IP Restrictor interface

Author:
Rana Bhattacharyya

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

Field Detail

ROLE

static final String ROLE
Method Detail

isAllowIp

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


reload

void reload()
            throws IOException
Reload data from store.

Throws:
IOException

save

void save()
          throws IOException
Save data into store.

Throws:
IOException

hasPermission

boolean hasPermission(InetAddress addr)
Check IP permission.


clear

void clear()
Clear all entries.


addEntry

void addEntry(String str)
Add new entry


removeEntry

void removeEntry(String str)
Remove entry


getAllEntries

Collection getAllEntries()
Get all entries



Copyright © 2001-2012 Codehaus. All Rights Reserved.