@java.lang.SuppressWarnings("rawtypes") public class CachingLinkGenerator extends DefaultLinkGenerator
A link generator that uses a LRU cache to cache generated links.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
EMPTY_MAP_STRING |
|
static java.lang.String |
LINK_PREFIX |
|
static java.lang.String |
RESOURCE_PREFIX |
|
static java.lang.String |
USED_ATTRIBUTES_SUFFIX |
Constructor and description |
---|
CachingLinkGenerator
(java.lang.String serverBaseURL, java.lang.String contextPath) |
CachingLinkGenerator
(java.lang.String serverBaseURL) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
appendKeyValue(java.lang.StringBuilder buffer, java.util.Map map, java.lang.Object key, java.lang.Object value) |
|
protected void |
appendMapKey(java.lang.StringBuilder buffer, java.util.Map<java.lang.String, java.lang.Object> params) |
|
public void |
clearCache() |
|
protected java.lang.String |
getCacheKeyValueForResource(java.lang.Object o) |
|
protected boolean |
isCacheable(java.util.Map attrs) |
|
public java.lang.String |
link(java.util.Map attrs, java.lang.String encoding) |
|
protected java.lang.String |
makeKey(java.lang.String prefix, java.util.Map attrs) |
|
public java.lang.String |
resource(java.util.Map attrs) |
Methods inherited from class | Name |
---|---|
class DefaultLinkGenerator |
getContextPath, getResourceId, getServerBaseURL, initializeResourcePath, isAbsolute, link, makeServerURL, resource, setPluginManager |