Class MountedPathResourceFactory

java.lang.Object
org.eclipse.jetty.util.resource.MountedPathResourceFactory
All Implemented Interfaces:
ResourceFactory

@ManagedObject("Factory for Mounted Resources") public class MountedPathResourceFactory extends Object implements ResourceFactory
A ResourceFactory for mounted FileSystems.

Example, for the "jar" scheme, this would use the JDK built-in ZipFileSystemProvider to load JAR files as a FileSystem suitable for PathResource.

  • Constructor Details

  • Method Details

    • newResource

      public Resource newResource(URI uri)
      Description copied from interface: ResourceFactory
      Construct a resource from a URI.

      Each call may allocate a new JVM resource, whose lifecycle is tied to this ResourceFactory implementation.

      This method is used to create root (or base) resources. Child resources of these resources, should be created using Resource.resolve(String)

      Specified by:
      newResource in interface ResourceFactory
      Parameters:
      uri - A URI.
      Returns:
      A Resource object.