public class JspStateManagerImpl extends MyfacesStateManager
Modifier and Type | Class and Description |
---|---|
protected static class |
JspStateManagerImpl.SerializedViewCollection |
protected static class |
JspStateManagerImpl.SerializedViewKey |
StateManager.SerializedView
FULL_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, writeState
protected Object getComponentStateToSave(FacesContext facesContext)
getComponentStateToSave
in class StateManager
protected Object getTreeStructureToSave(FacesContext facesContext)
getTreeStructureToSave
in class StateManager
protected void restoreComponentState(FacesContext facesContext, UIViewRoot uiViewRoot, String renderKitId)
restoreComponentState
in class StateManager
protected UIViewRoot restoreTreeStructure(FacesContext facesContext, String viewId, String renderKitId)
restoreTreeStructure
in class StateManager
public UIViewRoot restoreView(FacesContext facesContext, String viewId, String renderKitId)
restoreView
in class StateManager
public Object saveView(FacesContext facesContext)
saveView
in class StateManager
public StateManager.SerializedView saveSerializedView(FacesContext facesContext) throws IllegalStateException
saveSerializedView
in class StateManager
IllegalStateException
public void writeState(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeState
in class StateManager
IOException
public String getViewState(FacesContext facesContext)
getViewState
in class StateManager
public void writeStateAsUrlParams(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeStateAsUrlParams
in class MyfacesStateManager
facesContext
- serializedView
- IOException
protected 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_PARAM
protected boolean isCompressStateInSession(FacesContext context)
org.apache.myfaces.COMPRESS_STATE_IN_SESSION
context parameter.context
- FacesContext
for the request we are processing.COMPRESS_SERVER_STATE_PARAM
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.