public class AggregatingResourceLoader extends DynamicResourceLoader
Modifier and Type | Class and Description |
---|---|
class |
AggregatingResourceLoader.AggregatingURLStreamHandler
This is a Stream Handler which can be used to construct a URL that is an Aggregate of a list of
other urls.
|
Constructor and Description |
---|
AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target)
Creates a new AggregatingResourceLoader.
|
AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target,
ResourceLoader parent)
Creates a new AggregatingResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
protected URL |
getURL(String path)
Returns a URL which is an aggregate of all the paths.
|
void |
setSeparator(String separator)
Sets the separator to use in between streams.
|
findResource
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toString
public AggregatingResourceLoader(String path, String[] paths, ResourceLoader target, ResourceLoader parent)
path
- the aggregated resource pathpaths
- the target resource paths to aggregatetarget
- the resource loader use to find target resource pathsparent
- the parent resource loaderpublic AggregatingResourceLoader(String path, String[] paths, ResourceLoader target)
path
- the aggregated resource pathpaths
- the target resource paths to aggregatetarget
- the resource loader use to find target resource pathspublic void setSeparator(String separator)
null
which implies no separator.separator
- a string containing the separator charactersprotected URL getURL(String path) throws IOException
getURL
in class DynamicResourceLoader
path
- the current pathIOException
- when something bad happensCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.