|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.resource.ResourceLoader
org.apache.myfaces.trinidad.resource.DynamicResourceLoader
org.apache.myfaces.trinidad.resource.AggregatingResourceLoader
public class AggregatingResourceLoader
A resource loader implementation which combines multiple resources into a single stream. This version leverages the DynamicResourceLoader.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target)
Creates a new AggregatingResourceLoader. |
|
AggregatingResourceLoader(String path,
String[] paths,
ResourceLoader target,
ResourceLoader parent)
Creates a new AggregatingResourceLoader. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.myfaces.trinidad.resource.DynamicResourceLoader |
---|
findResource |
Methods inherited from class org.apache.myfaces.trinidad.resource.ResourceLoader |
---|
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 pathsMethod Detail |
---|
public 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 path
IOException
- when something bad happens
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |