Package com.sun.faces.application
Class StateManagerImpl
java.lang.Object
jakarta.faces.application.StateManager
com.sun.faces.application.StateManagerImpl
public class StateManagerImpl extends StateManager
A StateManager
implementation to meet the requirements of the specification.
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.faces.application.StateManager
StateManager.SerializedView
-
Field Summary
Fields inherited from class jakarta.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
Modifier and Type Method Description UIViewRoot
restoreView(FacesContext context, String viewId, String renderKitId)
Restores the view.Object
saveView(FacesContext context)
Save the view.void
writeState(FacesContext context, Object state)
Write out the state.Methods inherited from class jakarta.faces.application.StateManager
getComponentStateToSave, getTreeStructureToSave, getViewState, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveSerializedView, writeState
-
Constructor Details
-
StateManagerImpl
public StateManagerImpl()
-
-
Method Details
-
saveView
Save the view.- Overrides:
saveView
in classStateManager
- Parameters:
context
- the Faces context.- Returns:
- the saved view.
-
writeState
Write out the state.- Overrides:
writeState
in classStateManager
- Parameters:
context
- the Faces context.state
- the state.- Throws:
IOException
- when an I/O error occurs.
-
restoreView
Restores the view.- Specified by:
restoreView
in classStateManager
- Parameters:
context
- the Faces context.viewId
- the view id.renderKitId
- the render kit id.- Returns:
- the view root.
- See Also:
StateManager.restoreView(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String)
-