public class CachingResourceLoader extends ResourceLoader
Constructor and Description |
---|
CachingResourceLoader(ResourceLoader parent)
Constructs a new CachingResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
protected URL |
findResource(String path)
Returns the cached resource url if previously requested.
|
boolean |
isCachable()
Returns whether a resource is cachable.
|
getContentType, getContentType, getNullResourceLoader, getParent, getResource, toString
public CachingResourceLoader(ResourceLoader parent)
parent
- the parent resource loaderprotected URL findResource(String path) throws IOException
findResource
in class ResourceLoader
path
- the resource pathIOException
- if an I/O error occurspublic boolean isCachable()
ResourceLoader
isCachable
in class ResourceLoader
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.