public abstract class DynamicResourceLoader extends ResourceLoader
| Constructor and Description |
|---|
DynamicResourceLoader(String path)
Creates a DynamicResourceLoader for a specified path.
|
DynamicResourceLoader(String path,
ResourceLoader parent)
Creates a CompositeResouceLoader for a specified path.
|
| Modifier and Type | Method and Description |
|---|---|
protected URL |
findResource(String path)
Finds a resource.
|
protected abstract URL |
getURL(String path)
Returns a URL to this resource.
|
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toStringpublic DynamicResourceLoader(String path)
nullpath - the path that this ResourceLoader will respond topublic DynamicResourceLoader(String path, ResourceLoader parent)
path - the path that this ResourceLoader will respond toparent - the parent resource loaderprotected URL findResource(String path) throws IOException
findResource in class ResourceLoaderpath - the path which the ResourceLoader is looking for.IOException - when something bad happensprotected abstract URL getURL(String path) throws IOException
path - the path of the findResourceCallIOException - when something bad happensCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.