public class JspStateManagerImpl extends MyfacesStateManager
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JspStateManagerImpl.SerializedViewCollection |
protected static class |
JspStateManagerImpl.SerializedViewKey |
StateManager.SerializedViewFULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, PARTIAL_STATE_SAVING_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER| Constructor and Description |
|---|
JspStateManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
deserializeView(Object state) |
protected Object |
getComponentStateToSave(FacesContext facesContext) |
protected int |
getNextViewSequence(FacesContext context) |
protected RenderKitFactory |
getRenderKitFactory() |
protected Object |
getSerializedViewFromServletSession(FacesContext context,
String viewId,
Integer sequence) |
protected Integer |
getServerStateId(Object[] state) |
protected Object |
getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type
of each node in the view tree.
|
String |
getViewState(FacesContext facesContext) |
protected boolean |
isCompressStateInSession(FacesContext context)
Reads the value of the
org.apache.myfaces.COMPRESS_STATE_IN_SESSION context parameter. |
protected boolean |
isSerializeStateInSession(FacesContext context)
Reads the value of the
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION context parameter. |
protected void |
nextViewSequence(FacesContext facescontext) |
protected void |
restoreComponentState(FacesContext facesContext,
UIViewRoot uiViewRoot,
String renderKitId)
Given a tree of UIComponent objects created the default constructor
for each node, retrieve saved state info (from either the client or
the server) and walk the tree restoring the members of each node
from the saved state information.
|
protected UIViewRoot |
restoreTreeStructure(FacesContext facesContext,
String viewId,
String renderKitId)
See getTreeStructureToSave.
|
UIViewRoot |
restoreView(FacesContext facesContext,
String viewId,
String renderKitId) |
StateManager.SerializedView |
saveSerializedView(FacesContext facesContext) |
protected void |
saveSerializedViewInServletSession(FacesContext context,
Object serializedView) |
Object |
saveView(FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when
necessary
|
protected Object |
serializeView(FacesContext context,
Object serializedView) |
void |
writeState(FacesContext facesContext,
StateManager.SerializedView serializedView) |
void |
writeStateAsUrlParams(FacesContext facesContext,
StateManager.SerializedView serializedView)
MyFaces extension
|
isSavingStateInClient, writeStateprotected Object getComponentStateToSave(FacesContext facesContext)
getComponentStateToSave in class StateManagerprotected Object getTreeStructureToSave(FacesContext facesContext)
getTreeStructureToSave in class StateManagerprotected void restoreComponentState(FacesContext facesContext, UIViewRoot uiViewRoot, String renderKitId)
restoreComponentState in class StateManagerprotected UIViewRoot restoreTreeStructure(FacesContext facesContext, String viewId, String renderKitId)
restoreTreeStructure in class StateManagerpublic UIViewRoot restoreView(FacesContext facesContext, String viewId, String renderKitId)
restoreView in class StateManagerpublic Object saveView(FacesContext facesContext)
saveView in class StateManagerpublic StateManager.SerializedView saveSerializedView(FacesContext facesContext) throws IllegalStateException
saveSerializedView in class StateManagerIllegalStateExceptionpublic void writeState(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeState in class StateManagerIOExceptionpublic String getViewState(FacesContext facesContext)
getViewState in class StateManagerpublic void writeStateAsUrlParams(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeStateAsUrlParams in class MyfacesStateManagerfacesContext - serializedView - IOExceptionprotected RenderKitFactory getRenderKitFactory()
protected void saveSerializedViewInServletSession(FacesContext context, Object serializedView)
protected Object getSerializedViewFromServletSession(FacesContext context, String viewId, Integer sequence)
protected int getNextViewSequence(FacesContext context)
protected void nextViewSequence(FacesContext facescontext)
protected Object serializeView(FacesContext context, Object serializedView)
protected boolean isSerializeStateInSession(FacesContext context)
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION context parameter.context - FacesContext for the request we are processing.SERIALIZE_STATE_IN_SESSION_PARAMprotected boolean isCompressStateInSession(FacesContext context)
org.apache.myfaces.COMPRESS_STATE_IN_SESSION context parameter.context - FacesContext for the request we are processing.COMPRESS_SERVER_STATE_PARAMCopyright © 2016 The Apache Software Foundation. All Rights Reserved.