| java.lang.Object pygmy.core.AbstractHandler pygmy.handlers.FileHandler
FileHandler | public class FileHandler extends AbstractHandler implements Handler(Code) | |
This is the most basic Handler of a web server. It serves up files from a specified directory. For all urls
matching the url-prefix parameter, it translates those into files on the root files system starting at the root
parameter. It does pay attention to the Range http header parameter, and will send a range of bytes from a
request file. It also sets the file-path request property to the translate local system path of the file.
Other handlers could use this so that they don't have to translate the URL into a path. This handler ignores
directory requests, but will serve up default files ( like index.html, if the config parameter is set ). It does
not provide a directory listing see
DirectoryHandler for that functionality.
url-prefix | The prefix to filter request urls. | None | Yes |
root | A local system path to the root of the folder to share. | None | Yes |
default-file | The name of the default file that should be used if no file is specified in the URL. | index.html | No |
|
LAST_MODIFIED_KEY | final public static String LAST_MODIFIED_KEY(Code) | | |
RANGE_HEADER_KEY | final public static String RANGE_HEADER_KEY(Code) | | |
|
|