Class StaticResourceFactory

java.lang.Object
io.milton.servlet.StaticResourceFactory
All Implemented Interfaces:
ResourceFactory

public class StaticResourceFactory extends Object implements ResourceFactory
Used for providing simple readonly access to resources which are files in a conventional file system. Can be provided with a single or multiple root directories. If multiple they are searched in turn for a matching resource Will check for a system property static.resource.roots which, if present, is expected to be a comma delimited list of absolute paths to root locations. An exception will be thrown if a path is given which does not exist
Author:
brad
  • Field Details

  • Constructor Details

    • StaticResourceFactory

      public StaticResourceFactory()
    • StaticResourceFactory

      public StaticResourceFactory(File root)
    • StaticResourceFactory

      public StaticResourceFactory(List<File> roots)
  • Method Details