org.apache.myfaces.test.mock
Class MockResponseStateManager

java.lang.Object
  extended by javax.faces.render.ResponseStateManager
      extended by org.apache.myfaces.test.mock.MockResponseStateManager

public class MockResponseStateManager
extends javax.faces.render.ResponseStateManager

Mock class that encode view state in hex format

Since:
1.0.0
Author:
Leonardo Uribe

Field Summary
 
Fields inherited from class javax.faces.render.ResponseStateManager
RENDER_KIT_ID_PARAM, VIEW_STATE_PARAM
 
Constructor Summary
MockResponseStateManager()
           
 
Method Summary
 Object getComponentStateToRestore(javax.faces.context.FacesContext facesContext)
           
 Object getState(javax.faces.context.FacesContext facesContext, String viewId)
           
 Object getTreeStructureToRestore(javax.faces.context.FacesContext facesContext, String viewId)
           
 String getViewState(javax.faces.context.FacesContext facesContext, Object state)
           
 boolean isPostback(javax.faces.context.FacesContext context)
           
 void writeState(javax.faces.context.FacesContext facescontext, javax.faces.application.StateManager.SerializedView serializedview)
           
 
Methods inherited from class javax.faces.render.ResponseStateManager
writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockResponseStateManager

public MockResponseStateManager()
Method Detail

getState

public Object getState(javax.faces.context.FacesContext facesContext,
                       String viewId)
Overrides:
getState in class javax.faces.render.ResponseStateManager

getTreeStructureToRestore

public Object getTreeStructureToRestore(javax.faces.context.FacesContext facesContext,
                                        String viewId)
Overrides:
getTreeStructureToRestore in class javax.faces.render.ResponseStateManager

getComponentStateToRestore

public Object getComponentStateToRestore(javax.faces.context.FacesContext facesContext)
Overrides:
getComponentStateToRestore in class javax.faces.render.ResponseStateManager

isPostback

public boolean isPostback(javax.faces.context.FacesContext context)
Overrides:
isPostback in class javax.faces.render.ResponseStateManager

writeState

public void writeState(javax.faces.context.FacesContext facescontext,
                       javax.faces.application.StateManager.SerializedView serializedview)
                throws IOException
Overrides:
writeState in class javax.faces.render.ResponseStateManager
Throws:
IOException

getViewState

public String getViewState(javax.faces.context.FacesContext facesContext,
                           Object state)
Overrides:
getViewState in class javax.faces.render.ResponseStateManager


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.