net.sf.jasperreports.jsf.application
Class StateManagerImpl
java.lang.Object
javax.faces.application.StateManager
javax.faces.application.StateManagerWrapper
net.sf.jasperreports.jsf.application.StateManagerImpl
public class StateManagerImpl
- extends javax.faces.application.StateManagerWrapper
JSF's StateManagerWrapper implementation used to cache the
current view state so it can be restored in the future.
- Author:
- A. Alonso Dominguez
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 |
Constructor Summary |
StateManagerImpl(javax.faces.application.StateManager delegate)
Constructor for the StateManagerWrapper implmentation. |
Method Summary |
protected javax.faces.application.StateManager |
getWrapped()
Obtains the first delegate in the implementation chain. |
void |
writeState(javax.faces.context.FacesContext context,
Object state)
Writes the given state into the current response. |
Methods inherited from class javax.faces.application.StateManagerWrapper |
getComponentStateToSave, getTreeStructureToSave, isSavingStateInClient, restoreComponentState, restoreTreeStructure, restoreView, saveSerializedView, saveView, writeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateManagerImpl
public StateManagerImpl(javax.faces.application.StateManager delegate)
- Constructor for the StateManagerWrapper implmentation.
- Parameters:
delegate
- first delegate in the implementation chain.
writeState
public final void writeState(javax.faces.context.FacesContext context,
Object state)
throws IOException
- Writes the given state into the current response.
This implementation of the writeState method buffers the
current response before bypassing the responsiveness of writing the
response state. This allows to the method to cache the current state
date into the request attribute map so it can be restored in the future.
- Overrides:
writeState
in class javax.faces.application.StateManagerWrapper
- Parameters:
context
- current FacesContext instance.state
- current view state.
- Throws:
IOException
- when some output errors happen when
encding the state.
getWrapped
protected final javax.faces.application.StateManager getWrapped()
- Obtains the first delegate in the implementation chain.
- Specified by:
getWrapped
in class javax.faces.application.StateManagerWrapper
- Returns:
- first delegate in the chain.
Copyright © 2011 SourceForge.net. All Rights Reserved.