Class FasterCachedResourceResolver

java.lang.Object
org.nuiton.util.ResourceResolver
org.nuiton.util.FasterCachedResourceResolver
All Implemented Interfaces:
URIResolver

public class FasterCachedResourceResolver extends ResourceResolver
FasterCachedResourceResolver is a URIResolver using a optimized search time algorithm.

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
Author:
chorlet
  • Field Details

    • offline

      protected boolean offline
  • Constructor Details

    • FasterCachedResourceResolver

      public FasterCachedResourceResolver()
    • FasterCachedResourceResolver

      public FasterCachedResourceResolver(String base)
  • Method Details