Interface ResourceFactory

All Known Implementing Classes:
DefaultServlet, EmptyResource, JarFileResource, JarResource, PathResource, Resource, ResourceCollection, ResourceHandler, URLResource

public interface ResourceFactory
ResourceFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a Resource from a provided String.
  • Method Details

    • getResource

      Resource getResource(String path) throws IOException
      Get a Resource from a provided String.

      The behavior here is dependent on the implementation of ResourceFactory. The provided path can be resolved against a known Resource, or can be a from-scratch Resource.

      Parameters:
      path - The path to the resource
      Returns:
      The resource, that might not actually exist (yet).
      Throws:
      IOException - if unable to create Resource