Class StaticResourceServlet.StaticResourceProvider

java.lang.Object
de.businesscode.bcdui.web.servlets.StaticResourceServlet.StaticResourceProvider
All Implemented Interfaces:
StaticResourceServlet.ResourceProvider
Enclosing class:
StaticResourceServlet

public static class StaticResourceServlet.StaticResourceProvider extends Object implements StaticResourceServlet.ResourceProvider
a static resource provider singleton
  • Method Details

    • getInstance

      public static StaticResourceServlet.StaticResourceProvider getInstance()
    • getResource

      public StaticResourceServlet.Resource getResource(jakarta.servlet.ServletContext context, String fullyQualifiedPath)
      Gets the resource associated with a specific path.
      Specified by:
      getResource in interface StaticResourceServlet.ResourceProvider
      Parameters:
      context - The servlet context used to locate the files if it is a file resource.
      fullyQualifiedPath - The full path (without the context path) to the resource, beginning with "/". searching ordering: 1. DB (virtual file system) 2. HD Filesystem 2. JAR
      Returns:
      The resource which is always non-null. Use the notFound() method to test if the resource has been found.
      Throws:
      FileSystemException