| java.lang.Object com.caucho.portal.generic.CacheKey
CacheKey | public class CacheKey (Code) | | XXX: Cache implementation currently not complete.
The ConnectionContext should start building a CacheKey
as soon as it sees a window with expiration-cache != 0.
It should do this in the action stage, because each window is
seen in the action stage.
It should add parameters for every child namespace encountered, to whatever
depth.
Then when it gets to the render stage, it can use the CacheKey
to see if a cached value is available.
If not, it inserts a CachingPortletWriteStream, and fills the cache.
|
getPortletMode | public PortletMode getPortletMode()(Code) | | |
getRequestedSessionId | public String getRequestedSessionId()(Code) | | Return a session id if isPrivate() is true, null if isPrivate() is false.
|
getWindowState | public WindowState getWindowState()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isPrivate | public boolean isPrivate()(Code) | | |
reset | public void reset()(Code) | | Reset to a state similar to that following construction.
|
setContentType | public void setContentType(String contentType)(Code) | | |
setLocale | public void setLocale(Locale locale)(Code) | | When a cache key is created to check for a cached response the locale
is set to the value of request.getLocale().
A cache should first check the cache for an entry with the cacheKey
as it is received, and then call cacheKey.setLocale(null) and try again.
When a cache key is created to cache a response the locale is only set in
the cache key if a portlet has called request.getLocale() or
request.getLocales() or request.setLocale() method. It is set to the locale
set by the portlet with response.setLocale(), or if the portlet does not
call response.setLocale(), the value of request.getLocale().
|
setNamespace | public void setNamespace(String namespace)(Code) | | |
setPortletMode | public void setPortletMode(PortletMode portletMode)(Code) | | |
setPrivate | public void setPrivate(boolean isPrivate)(Code) | | |
setRequestedSessionId | public void setRequestedSessionId(String sessionId)(Code) | | |
setWindowState | public void setWindowState(WindowState windowState)(Code) | | |
toString | public String toString()(Code) | | Return a string that uniquely identifies this CacheKey.
The set of characters that form the string is "A-Z a-z 0-9 _".
That means the returned string is suitable as a file name, for example.
|
|
|