public class ProxyResourceLoader extends ResourceLoader
Modifier and Type | Class and Description |
---|---|
protected class |
ProxyResourceLoader.ProxyURLConnection
Helper class used to manage aggregated URL input stream.
|
Constructor and Description |
---|
ProxyResourceLoader(ResourceLoader parent)
Constructs a new ProxyResourceLoader with specified parent.
|
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String path)
Finds the resource with the given name.
|
findResource, getContentType, getContentType, getNullResourceLoader, getParent, isCachable, toString
public ProxyResourceLoader(ResourceLoader parent)
parent
- the parent resource loaderpublic URL getResource(String path) throws IOException
ResourceLoader
The name of a resource is a '/'-separated path name that identifies the resource.
This method will first search the this resource loader for the
resource. That failing, this method will invoke
ResourceLoader.findResource(String)
to on the parent resource loader to
find the resource.
getResource
in class ResourceLoader
path
- the resource nameIOException
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.