Class WebResourceFactory

java.lang.Object
io.milton.servlet.WebResourceFactory
All Implemented Interfaces:
ResourceFactory, Initable

public class WebResourceFactory extends Object implements ResourceFactory, Initable
Provides access to resources exposed by the servlet context. Attempts to locate a physical file, via getRealPath. This will usually work, but may not in cases where the webapp is running from a war file, or if overlays are used. If not found it attempts to locate a URL with servletContext.getResource
Author:
brad
  • Constructor Details

    • WebResourceFactory

      public WebResourceFactory()
    • WebResourceFactory

      public WebResourceFactory(Config config)
    • WebResourceFactory

      public WebResourceFactory(File fileHome)
  • Method Details