Class FileHandler

  • All Implemented Interfaces:
    SimpleHttpHandler, HttpHandler

    public class FileHandler
    extends Object
    implements SimpleHttpHandler
    A request handler that processes files using the FileHandlerAdapter.
    The context parameter determines if the relative context of the file within the handler before the name. case-sensitive
    The fileName parameter overrides the FileNameAdapter.getName(File) and determines the name of the file after the context (if there is one).
    The directoryName parameter determines the directory's name. Add the files at the top level by keeping this field empty.
    The loadingOption parameter determines how files should be loaded (see ByteLoadingOption).
    The walk parameter determines if all the inner directories should be used. The handler will returns data given by the FileHandlerAdapter unless overridden.
    Since:
    02.00.00
    Version:
    03.05.05
    Author:
    Ktt Development
    See Also:
    FileHandlerAdapter, ByteLoadingOption, SimpleHttpHandler, HttpHandler