Package org.apache.myfaces.application
Class StateManagerImpl
- java.lang.Object
-
- javax.faces.application.StateManager
-
- org.apache.myfaces.application.StateManagerImpl
-
public class StateManagerImpl extends StateManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.faces.application.StateManager
StateManager.SerializedView
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERIALIZED_VIEW_REQUEST_ATTR
-
Fields inherited from class javax.faces.application.StateManager
FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, IS_BUILDING_INITIAL_STATE, IS_SAVING_STATE, PARTIAL_STATE_SAVING_PARAM_NAME, SERIALIZE_SERVER_STATE_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
-
-
Constructor Summary
Constructors Constructor Description StateManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getComponentStateToSave(FacesContext facesContext)
protected RenderKitFactory
getRenderKitFactory()
protected Object
getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type of each node in the view tree.UIViewRoot
restoreView(FacesContext facesContext, String viewId, String renderKitId)
Object
saveView(FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when necessaryvoid
writeState(FacesContext facesContext, Object state)
-
Methods inherited from class javax.faces.application.StateManager
getViewState, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveSerializedView, writeState
-
-
-
-
Field Detail
-
SERIALIZED_VIEW_REQUEST_ATTR
public static final String SERIALIZED_VIEW_REQUEST_ATTR
-
-
Method Detail
-
getComponentStateToSave
protected Object getComponentStateToSave(FacesContext facesContext)
- Overrides:
getComponentStateToSave
in classStateManager
-
getTreeStructureToSave
protected Object getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type of each node in the view tree. This allows an identical UIComponent tree to be recreated later, though all the components will have just default values for their members.- Overrides:
getTreeStructureToSave
in classStateManager
-
restoreView
public UIViewRoot restoreView(FacesContext facesContext, String viewId, String renderKitId)
- Specified by:
restoreView
in classStateManager
-
saveView
public Object saveView(FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when necessary- Overrides:
saveView
in classStateManager
-
writeState
public void writeState(FacesContext facesContext, Object state) throws IOException
- Overrides:
writeState
in classStateManager
- Throws:
IOException
-
getRenderKitFactory
protected RenderKitFactory getRenderKitFactory()
-
-