public class MockStateManager
extends javax.faces.application.StateManager
Mock implementation of 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 and Description |
|---|
MockStateManager()
Construct a default instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getComponentStateToSave(javax.faces.context.FacesContext context) |
Object |
getTreeStructureToSave(javax.faces.context.FacesContext context) |
void |
restoreComponentState(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view,
String renderKitId) |
javax.faces.component.UIViewRoot |
restoreTreeStructure(javax.faces.context.FacesContext context,
String viewId,
String renderKitId) |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId,
String renderKitId) |
javax.faces.application.StateManager.SerializedView |
saveSerializedView(javax.faces.context.FacesContext context) |
void |
writeState(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView view) |
public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext context)
saveSerializedView in class javax.faces.application.StateManagerpublic Object getTreeStructureToSave(javax.faces.context.FacesContext context)
getTreeStructureToSave in class javax.faces.application.StateManagerpublic Object getComponentStateToSave(javax.faces.context.FacesContext context)
getComponentStateToSave in class javax.faces.application.StateManagerpublic void writeState(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView view)
throws IOException
writeState in class javax.faces.application.StateManagerIOExceptionpublic javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
String viewId,
String renderKitId)
restoreView in class javax.faces.application.StateManagerpublic javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext context,
String viewId,
String renderKitId)
restoreTreeStructure in class javax.faces.application.StateManagerpublic void restoreComponentState(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view,
String renderKitId)
restoreComponentState in class javax.faces.application.StateManagerCopyright © 2017 The Apache Software Foundation. All rights reserved.