org.apache.ftpserver.ip
Interface IpRestrictorInterface

All Known Implementing Classes:
AbstractIpRestrictor, FileIpRestrictor

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

static final java.lang.String ROLE
Method Detail

isAllowIp

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


reload

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

Throws:
java.io.IOException

save

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

Throws:
java.io.IOException

hasPermission

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


clear

void clear()
Clear all entries.


addEntry

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


removeEntry

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


getAllEntries

java.util.Collection getAllEntries()
Get all entries



Copyright © 2001-2009 Codehaus. All Rights Reserved.