ikrs.httpd
Interface HTTPFileFilter

All Known Implementing Classes:
AbstractFileFilter, DefaultFileFilter

public interface HTTPFileFilter

A file filter for directory listings and direct file access. This class has an 'acceptFile' method similar to the java.io.FileFilter.accept method and an additional 'acceptListing' for the case a file is allowed to be listet in directory listings but not downloadable (accessible).


Method Summary
 boolean acceptAccess(java.io.File file)
          This method should return false if the passed file is not accessible due to security or other reasons.
 boolean acceptListing(java.io.File file)
          This method should return false if the passed file is not allowed to be listed in directory listings.
 

Method Detail

acceptAccess

boolean acceptAccess(java.io.File file)
This method should return false if the passed file is not accessible due to security or other reasons.

Parameters:
file - The file the user want's to access.
Returns:
true If the file may be accessed.

acceptListing

boolean acceptListing(java.io.File file)
This method should return false if the passed file is not allowed to be listed in directory listings.

Parameters:
file - The file the user want's to access.
Returns:
true If the file may be accessed.