Class StaticResourceServlet.StaticResourceProvider

    • Method Detail

      • 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 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:
        java.nio.file.FileSystemException