Class PathResourceFactory

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

public class PathResourceFactory extends Object implements ResourceFactory
  • Constructor Details

    • PathResourceFactory

      public PathResourceFactory()
  • 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.