Package org.eclipse.jetty.util.resource
Interface ResourceFactory
- All Known Implementing Classes:
DefaultServlet
,EmptyResource
,JarFileResource
,JarResource
,PathResource
,Resource
,ResourceCollection
,ResourceHandler
,URLResource
public interface ResourceFactory
ResourceFactory.
-
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String path) Get a Resource from a provided String.
-
Method Details
-
getResource
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
-