public interface PathResolverCache
ResourceValidator
. This allows a Decoration to bypass
hitting the ResourceValidator repeatedly after a path is already known
to exist.ResourceValidator
Modifier and Type | Method and Description |
---|---|
void |
addPath(String key,
String path)
Adds a recolved
path to the the cache using
its relative path as the key |
void |
clear()
Clears the entire contents of this cache object.
|
String |
getPath(String key)
Returns a previously located path using its retlative path
as the
code . |
String |
removePath(String key)
Removes a full path to a resource from the cache using its
relative path as the
key . |
void addPath(String key, String path)
path
to the the cache using
its relative path as the key
key
- key relative path of the resource.path
- full path to resourceString getPath(String key)
code
.key
- relative path of the resource.null
if no resource
for the key exists.String removePath(String key)
key
.key
- null
if the resource path was not cached.void clear()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.