org.apache.myfaces.custom.redirectTracker
Class FacesContextWrapper

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.custom.redirectTracker.FacesContextWrapper

public class FacesContextWrapper
extends javax.faces.context.FacesContext

Convenient class to wrap the current FacesContext.

Version:
$Revision: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
Author:
Manfred Geiler (latest modification by $Author: skitching $), Anton Koinov

Constructor Summary
FacesContextWrapper(javax.faces.context.FacesContext facesContext)
           
 
Method Summary
 void addMessage(java.lang.String clientId, javax.faces.application.FacesMessage message)
           
 javax.faces.application.Application getApplication()
           
 java.util.Iterator getClientIdsWithMessages()
           
 javax.faces.context.ExternalContext getExternalContext()
           
 javax.faces.application.FacesMessage.Severity getMaximumSeverity()
           
 java.util.Iterator getMessages()
           
 java.util.Iterator getMessages(java.lang.String clientId)
           
 javax.faces.render.RenderKit getRenderKit()
           
 boolean getRenderResponse()
           
 boolean getResponseComplete()
           
 javax.faces.context.ResponseStream getResponseStream()
           
 javax.faces.context.ResponseWriter getResponseWriter()
           
 javax.faces.component.UIViewRoot getViewRoot()
           
 javax.faces.context.FacesContext getWrappedFacesContext()
           
 void release()
           
 void renderResponse()
           
 void responseComplete()
           
 void setResponseStream(javax.faces.context.ResponseStream responsestream)
           
 void setResponseWriter(javax.faces.context.ResponseWriter responsewriter)
           
 void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
           
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, setCurrentInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesContextWrapper

public FacesContextWrapper(javax.faces.context.FacesContext facesContext)
Method Detail

getApplication

public javax.faces.application.Application getApplication()
Specified by:
getApplication in class javax.faces.context.FacesContext

getClientIdsWithMessages

public java.util.Iterator getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class javax.faces.context.FacesContext

getExternalContext

public javax.faces.context.ExternalContext getExternalContext()
Specified by:
getExternalContext in class javax.faces.context.FacesContext

getMaximumSeverity

public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
Specified by:
getMaximumSeverity in class javax.faces.context.FacesContext

getMessages

public java.util.Iterator getMessages()
Specified by:
getMessages in class javax.faces.context.FacesContext

getMessages

public java.util.Iterator getMessages(java.lang.String clientId)
Specified by:
getMessages in class javax.faces.context.FacesContext

getRenderKit

public javax.faces.render.RenderKit getRenderKit()
Specified by:
getRenderKit in class javax.faces.context.FacesContext

getRenderResponse

public boolean getRenderResponse()
Specified by:
getRenderResponse in class javax.faces.context.FacesContext

getResponseComplete

public boolean getResponseComplete()
Specified by:
getResponseComplete in class javax.faces.context.FacesContext

setResponseStream

public void setResponseStream(javax.faces.context.ResponseStream responsestream)
Specified by:
setResponseStream in class javax.faces.context.FacesContext

getResponseStream

public javax.faces.context.ResponseStream getResponseStream()
Specified by:
getResponseStream in class javax.faces.context.FacesContext

setResponseWriter

public void setResponseWriter(javax.faces.context.ResponseWriter responsewriter)
Specified by:
setResponseWriter in class javax.faces.context.FacesContext

getResponseWriter

public javax.faces.context.ResponseWriter getResponseWriter()
Specified by:
getResponseWriter in class javax.faces.context.FacesContext

setViewRoot

public void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
Specified by:
setViewRoot in class javax.faces.context.FacesContext

getViewRoot

public javax.faces.component.UIViewRoot getViewRoot()
Specified by:
getViewRoot in class javax.faces.context.FacesContext

addMessage

public void addMessage(java.lang.String clientId,
                       javax.faces.application.FacesMessage message)
Specified by:
addMessage in class javax.faces.context.FacesContext

release

public void release()
Specified by:
release in class javax.faces.context.FacesContext

renderResponse

public void renderResponse()
Specified by:
renderResponse in class javax.faces.context.FacesContext

responseComplete

public void responseComplete()
Specified by:
responseComplete in class javax.faces.context.FacesContext

getWrappedFacesContext

public javax.faces.context.FacesContext getWrappedFacesContext()


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