|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.httpd.AbstractFileFilter ikrs.httpd.DefaultFileFilter
public class DefaultFileFilter
An abstract 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).
Constructor Summary | |
---|---|
DefaultFileFilter()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileFilter()
Method Detail |
---|
public boolean acceptAccess(java.io.File file)
acceptAccess
in interface HTTPFileFilter
acceptAccess
in class AbstractFileFilter
file
- The file the user want's to access.
public boolean acceptListing(java.io.File file)
acceptListing
in interface HTTPFileFilter
acceptListing
in class AbstractFileFilter
file
- The file the user want's to access.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |