com.faunos.util.net.http.file
Interface DirectoryFileDefaulter

All Known Implementing Classes:
SimpleFileDefaulter

public interface DirectoryFileDefaulter

A rule for determining which file in the directory to serve when an HTTP request URI resolves to a directory. The typical implementation returns the "index.html" file.

Author:
Babak Farhang

Method Summary
 File getDefaultChild(File directory)
          Returns the default file that should be returned for the given directory.
 

Method Detail

getDefaultChild

File getDefaultChild(File directory)
                     throws IOException
Returns the default file that should be returned for the given directory. Since this is a rule-based interface, it is not required that the returned file even exist. Also, returning null is allowed.

Throws:
IOException


SourceForge.net Logo