com.sun.faces.application
Class StateManagerImpl
java.lang.Object
javax.faces.application.StateManager
com.sun.faces.application.StateManagerImpl
public class StateManagerImpl
- extends javax.faces.application.StateManager
Nested classes/interfaces inherited from class javax.faces.application.StateManager |
javax.faces.application.StateManager.SerializedView |
Fields inherited from class javax.faces.application.StateManager |
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER |
Method Summary |
protected void |
checkIdUniqueness(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.util.Set<java.lang.String> componentIds)
|
protected int |
getNumberOfViewsInLogicalViewParameter(javax.faces.context.FacesContext context)
Returns the value of ServletContextInitParameter that specifies the
maximum number of views to be saved in this logical view. |
protected int |
getNumberOfViewsParameter(javax.faces.context.FacesContext context)
Returns the value of ServletContextInitParameter that specifies the
maximum number of logical views to be saved in session. |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.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 state)
|
Methods inherited from class javax.faces.application.StateManager |
getComponentStateToSave, getTreeStructureToSave, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveView, writeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateManagerImpl
public StateManagerImpl()
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
- Specified by:
restoreView
in class javax.faces.application.StateManager
saveSerializedView
public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext context)
- Overrides:
saveSerializedView
in class javax.faces.application.StateManager
writeState
public void writeState(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView state)
throws java.io.IOException
- Overrides:
writeState
in class javax.faces.application.StateManager
- Throws:
java.io.IOException
checkIdUniqueness
protected void checkIdUniqueness(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.util.Set<java.lang.String> componentIds)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getNumberOfViewsInLogicalViewParameter
protected int getNumberOfViewsInLogicalViewParameter(javax.faces.context.FacesContext context)
- Returns the value of ServletContextInitParameter that specifies the
maximum number of views to be saved in this logical view. If none is specified
returns
DEFAULT_NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION
.
- Parameters:
context
- the FacesContext
- Returns:
- number of logical views
getNumberOfViewsParameter
protected int getNumberOfViewsParameter(javax.faces.context.FacesContext context)
- Returns the value of ServletContextInitParameter that specifies the
maximum number of logical views to be saved in session. If none is specified
returns
DEFAULT_NUMBER_OF_VIEWS_IN_SESSION
.
- Parameters:
context
- the FacesContext
- Returns:
- number of logical views
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.