org.apache.ftpserver.remote.interfaces
Interface IpRestrictorInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
IpRestrictor

public interface IpRestrictorInterface
extends java.rmi.Remote

IP Restrictor remotr interface. Used by admin GUI.

Author:
Rana Bhattacharyya

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

Method Detail

isAllowIp

public boolean isAllowIp()
                  throws java.rmi.RemoteException
Allow/ban IP flag

Throws:
java.rmi.RemoteException

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

Throws:
java.rmi.RemoteException

clear

public void clear()
           throws java.rmi.RemoteException
Clear all entries.

Throws:
java.rmi.RemoteException

addEntry

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

Throws:
java.rmi.RemoteException

removeEntry

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

Throws:
java.rmi.RemoteException

getAllEntries

public java.util.Collection getAllEntries()
                                   throws java.rmi.RemoteException
Get all entries

Throws:
java.rmi.RemoteException


Copyright © 2001-2007 Codehaus. All Rights Reserved.