|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.application.StateCache<K,V>
public abstract class StateCache<K,V>
This class provides and interface to separate the state caching operations (saving/restoring) from the renderkit specific stuff that HtmlResponseStateManager should do.
Constructor Summary | |
---|---|
StateCache()
|
Method Summary | |
---|---|
abstract K |
encodeSerializedState(FacesContext facesContext,
Object serializedView)
Calculate the token to be used if server side state saving, or encode the view and return the viewState that can be used by the underlying ResponseStateManager to write the state. |
abstract boolean |
isWriteStateAfterRenderViewRequired(FacesContext facesContext)
Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered. |
abstract V |
restoreSerializedView(FacesContext facesContext,
String viewId,
K viewState)
Get the state from the cache is server side state saving is used, or decode it from the passed viewState param if client side is used. |
abstract K |
saveSerializedView(FacesContext facesContext,
V serializedView)
Put the state on the cache, to can be restored later. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateCache()
Method Detail |
---|
public abstract K saveSerializedView(FacesContext facesContext, V serializedView)
facesContext
- serializedView
- public abstract V restoreSerializedView(FacesContext facesContext, String viewId, K viewState)
facesContext
- viewId
- The viewId of the view to be restoredviewState
- A token usually retrieved from a call to ResponseStateManager.getState that will be
used to identify or restore the state.
public abstract K encodeSerializedState(FacesContext facesContext, Object serializedView)
facesContext
- state
- The state that will be used to derive the token returned.
public abstract boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
facesContext
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |