|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.faunos.util.net.http.file.SimpleFileDefaulter
public class SimpleFileDefaulter
A simple, stateless, filename-based DirectoryFileDefaulter implementation.
Field Summary | |
---|---|
static SimpleFileDefaulter |
INDEX_DOT_HTML
An instance that returns an "index.html" file. |
Constructor Summary | |
---|---|
SimpleFileDefaulter(String filename)
Creates a new instance with the specified simple filename. |
Method Summary | |
---|---|
File |
getDefaultChild(File directory)
Returns the default file that should be returned for the given directory. |
String |
getFilename()
Returns the filename passed in at instantiation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleFileDefaulter INDEX_DOT_HTML
Constructor Detail |
---|
public SimpleFileDefaulter(String filename)
Method Detail |
---|
public String getFilename()
public File getDefaultChild(File directory) throws IOException
DirectoryFileDefaulter
getDefaultChild
in interface DirectoryFileDefaulter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |