com.sun.faces.application
Class StateManagerImpl

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by com.sun.faces.application.StateManagerImpl

public class StateManagerImpl
extends javax.faces.application.StateManager


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.application.StateManager
javax.faces.application.StateManager.SerializedView
 
Field Summary
 
Fields inherited from class javax.faces.application.StateManager
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
 
Constructor Summary
StateManagerImpl()
           
 
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
 

Constructor Detail

StateManagerImpl

public StateManagerImpl()
Method Detail

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.