|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.cache.impl.JetspeedCacheKeyGenerator
public class JetspeedCacheKeyGenerator
Wrapper around actual cache implementation
| Constructor Summary | |
|---|---|
JetspeedCacheKeyGenerator(java.util.List segments)
|
|
| Method Summary | |
|---|---|
ContentCacheKey |
createCacheKey(RequestContext context,
java.lang.String windowId)
Normalized and pluggable cache key generator |
ContentCacheKey |
createSessionCacheKey(java.lang.String sessionId,
java.lang.String pipeline,
java.lang.String windowId)
Create a cache key without request context information, but by providing required parameters sessinid and windowid |
ContentCacheKey |
createUserCacheKey(java.lang.String username,
java.lang.String pipeline,
java.lang.String windowId)
Create a cache key without request context information, but by providing required parameters username and windowid |
boolean |
isCacheBySessionId()
return true if caching is by session id, not username |
boolean |
isCacheByUsername()
return true if caching is by username, not sessionid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JetspeedCacheKeyGenerator(java.util.List segments)
| Method Detail |
|---|
public ContentCacheKey createCacheKey(RequestContext context,
java.lang.String windowId)
ContentCacheKeyGenerator
createCacheKey in interface ContentCacheKeyGeneratorwindowId - The window id of the portlet to be cached.
public ContentCacheKey createUserCacheKey(java.lang.String username,
java.lang.String pipeline,
java.lang.String windowId)
ContentCacheKeyGenerator
createUserCacheKey in interface ContentCacheKeyGeneratorpipeline - "desktop" or "portal"
public ContentCacheKey createSessionCacheKey(java.lang.String sessionId,
java.lang.String pipeline,
java.lang.String windowId)
ContentCacheKeyGenerator
createSessionCacheKey in interface ContentCacheKeyGeneratorpipeline - "desktop" or "portal"
public boolean isCacheBySessionId()
ContentCacheKeyGenerator
isCacheBySessionId in interface ContentCacheKeyGeneratorpublic boolean isCacheByUsername()
ContentCacheKeyGenerator
isCacheByUsername in interface ContentCacheKeyGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||