org.apache.ftpserver.remote.interfaces
Interface IpRestrictorInterface

All Superinterfaces:
Remote
All Known Implementing Classes:
IpRestrictor

public interface IpRestrictorInterface
extends Remote

IP Restrictor remotr interface. Used by admin GUI.

Author:
Rana Bhattacharyya

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 IP flag
 void reload()
          Reload data from store.
 void removeEntry(String str)
          Remove entry
 void save()
          Save data into store.
 

Method Detail

isAllowIp

boolean isAllowIp()
                  throws RemoteException
Allow/ban IP flag

Throws:
RemoteException

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)
                      throws RemoteException
Check IP permission.

Throws:
RemoteException

clear

void clear()
           throws RemoteException
Clear all entries.

Throws:
RemoteException

addEntry

void addEntry(String str)
              throws RemoteException
Add new entry

Throws:
RemoteException

removeEntry

void removeEntry(String str)
                 throws RemoteException
Remove entry

Throws:
RemoteException

getAllEntries

Collection getAllEntries()
                         throws RemoteException
Get all entries

Throws:
RemoteException


Copyright © 2001-2012 Codehaus. All Rights Reserved.