|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.portal.generic.CacheKey
public class CacheKey
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.
| Constructor Summary | |
|---|---|
CacheKey()
|
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String name,
java.lang.String[] values)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getContentType()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getNamespace()
|
PortletMode |
getPortletMode()
|
java.lang.String |
getRequestedSessionId()
Return a session id if isPrivate() is true, null if isPrivate() is false. |
WindowState |
getWindowState()
|
int |
hashCode()
|
boolean |
isPrivate()
|
void |
reset()
Reset to a state similar to that following construction. |
void |
setContentType(java.lang.String contentType)
|
void |
setLocale(java.util.Locale locale)
When a cache key is created to check for a cached response the locale is set to the value of request.getLocale(). |
void |
setNamespace(java.lang.String namespace)
|
void |
setPortletMode(PortletMode portletMode)
|
void |
setPrivate(boolean isPrivate)
|
void |
setRequestedSessionId(java.lang.String sessionId)
|
void |
setWindowState(WindowState windowState)
|
java.lang.String |
toString()
Return a string that uniquely identifies this CacheKey. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CacheKey()
| Method Detail |
|---|
public void setNamespace(java.lang.String namespace)
public void setPortletMode(PortletMode portletMode)
public void setWindowState(WindowState windowState)
public void addParameter(java.lang.String name,
java.lang.String[] values)
public void setContentType(java.lang.String contentType)
public void setLocale(java.util.Locale locale)
public void setPrivate(boolean isPrivate)
public void setRequestedSessionId(java.lang.String sessionId)
public boolean isPrivate()
public java.lang.String getNamespace()
public PortletMode getPortletMode()
public WindowState getWindowState()
public java.lang.String getContentType()
public java.util.Locale getLocale()
public java.lang.String getRequestedSessionId()
public void reset()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||