org.apache.myfaces.test.mock
Class MockViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by org.apache.myfaces.test.mock.MockViewHandler

public class MockViewHandler
extends javax.faces.application.ViewHandler

Mock implementation of ViewHandler.

$Id$

Since:
1.0.0

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
MockViewHandler()
          Construct a default instance.
 
Method Summary
 Locale calculateLocale(javax.faces.context.FacesContext context)
          
 String calculateRenderKitId(javax.faces.context.FacesContext context)
          
 javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, String viewId)
          
 String getActionURL(javax.faces.context.FacesContext context, String viewId)
          
 String getResourceURL(javax.faces.context.FacesContext context, String path)
          
 void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view)
          
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, String viewId)
          
 void writeState(javax.faces.context.FacesContext context)
          
 
Methods inherited from class javax.faces.application.ViewHandler
calculateCharacterEncoding, initView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockViewHandler

public MockViewHandler()

Construct a default instance.

Method Detail

calculateLocale

public Locale calculateLocale(javax.faces.context.FacesContext context)

Specified by:
calculateLocale in class javax.faces.application.ViewHandler

calculateRenderKitId

public String calculateRenderKitId(javax.faces.context.FacesContext context)

Specified by:
calculateRenderKitId in class javax.faces.application.ViewHandler

createView

public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
                                                   String viewId)

Specified by:
createView in class javax.faces.application.ViewHandler

getActionURL

public String getActionURL(javax.faces.context.FacesContext context,
                           String viewId)

Specified by:
getActionURL in class javax.faces.application.ViewHandler

getResourceURL

public String getResourceURL(javax.faces.context.FacesContext context,
                             String path)

Specified by:
getResourceURL in class javax.faces.application.ViewHandler

renderView

public void renderView(javax.faces.context.FacesContext context,
                       javax.faces.component.UIViewRoot view)

Specified by:
renderView in class javax.faces.application.ViewHandler

restoreView

public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
                                                    String viewId)

Specified by:
restoreView in class javax.faces.application.ViewHandler

writeState

public void writeState(javax.faces.context.FacesContext context)

Specified by:
writeState in class javax.faces.application.ViewHandler


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