public class FasterCachedResourceResolver extends ResourceResolver
For a given href, will try to search the exact path in classp-ath in the exact directory META-INF/cache.
The fact of using META-INF directory is optimized (special jvm directory). The other fact of using an exact directory makes also decrease dramaticly time search. Finally, we spend ten times less time in searching; moreover using the path of searched resource resolve the probleme of name colision and this is also a good thing... Exemple :href = http://foo/bar/file.txt search resource : /META-INF/cache/foo/bar/file.txt
Modifier and Type | Field and Description |
---|---|
protected boolean |
offline |
base, cl, HREF_PATTERN, sourceCache, unresolvedCache, verbose
Constructor and Description |
---|
FasterCachedResourceResolver() |
FasterCachedResourceResolver(String base) |
Modifier and Type | Method and Description |
---|---|
protected Source |
findHrefSource(String path) |
void |
setOffline(boolean offline) |
clearCache, findRelativeSource, resolve, setCl, setVerbose
public FasterCachedResourceResolver()
public FasterCachedResourceResolver(String base)
public void setOffline(boolean offline)
protected Source findHrefSource(String path)
findHrefSource
in class ResourceResolver
Copyright © 2004–2020 CodeLutin. All rights reserved.