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 java.lang.Object implements StaticResourceServlet.ResourceProvider
a static resource provider singleton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticResourceServlet.StaticResourceProvider
getInstance()
StaticResourceServlet.Resource
getResource(javax.servlet.ServletContext context, java.lang.String fullyQualifiedPath)
Gets the resource associated with a specific path.
-
-
-
Method Detail
-
getInstance
public static StaticResourceServlet.StaticResourceProvider getInstance()
-
getResource
public StaticResourceServlet.Resource getResource(javax.servlet.ServletContext context, java.lang.String fullyQualifiedPath)
Gets the resource associated with a specific path.- Specified by:
getResource
in interfaceStaticResourceServlet.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:
java.nio.file.FileSystemException
-
-