|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.web.util.resource.ResourceCaches
public class ResourceCaches
Utilities to load (and parse) the Servlet resource.
Notice that ResourceCache
and ResourceLoader
must be used rather than
ResourceCache
and Loader
.
Usage:
ResourceLoader
.ResourceCache
)
by use of the loader in the previous step.get(org.zkoss.web.util.resource.ResourceCache, javax.servlet.ServletContext, java.lang.String, java.lang.Object)
to load the resource.
Constructor Summary | |
---|---|
ResourceCaches()
|
Method Summary | ||
---|---|---|
static
|
get(ResourceCache<V> cache,
javax.servlet.ServletContext ctx,
java.lang.String path,
java.lang.Object extra)
Loads, parses and returns the resource of the specified URI, or null if not found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceCaches()
Method Detail |
---|
public static final <V> V get(ResourceCache<V> cache, javax.servlet.ServletContext ctx, java.lang.String path, java.lang.Object extra)
ResourceCache
.
cache
- the resource cache.
Note: its loader must extend from ResourceLoader
.path
- the URI pathextra
- the extra parameter that will be passed to
ResourceLoader.parse(String,File,Object)
and
ResourceLoader.parse(String,URL,Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |