org.apache.myfaces.context
Class FacesContextWrapper

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

public class FacesContextWrapper
extends FacesContext

Convenient class to wrap the current FacesContext.

Version:
$Revision: 472618 $ $Date: 2006-11-08 15:06:54 -0500 (Wed, 08 Nov 2006) $
Author:
Manfred Geiler (latest modification by $Author: grantsmith $), Anton Koinov

Constructor Summary
FacesContextWrapper(FacesContext facesContext)
           
 
Method Summary
 void addMessage(String clientId, FacesMessage message)
           
 Application getApplication()
           
 Iterator getClientIdsWithMessages()
           
 ExternalContext getExternalContext()
           
 FacesMessage.Severity getMaximumSeverity()
           
 Iterator getMessages()
           
 Iterator getMessages(String clientId)
           
 RenderKit getRenderKit()
           
 boolean getRenderResponse()
           
 boolean getResponseComplete()
           
 ResponseStream getResponseStream()
           
 ResponseWriter getResponseWriter()
           
 UIViewRoot getViewRoot()
           
 void release()
           
 void renderResponse()
           
 void responseComplete()
           
 void setResponseStream(ResponseStream responsestream)
           
 void setResponseWriter(ResponseWriter responsewriter)
           
 void setViewRoot(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(FacesContext facesContext)
Method Detail

getApplication

public Application getApplication()
Specified by:
getApplication in class FacesContext

getClientIdsWithMessages

public Iterator getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class FacesContext

getExternalContext

public ExternalContext getExternalContext()
Specified by:
getExternalContext in class FacesContext

getMaximumSeverity

public FacesMessage.Severity getMaximumSeverity()
Specified by:
getMaximumSeverity in class FacesContext

getMessages

public Iterator getMessages()
Specified by:
getMessages in class FacesContext

getMessages

public Iterator getMessages(String clientId)
Specified by:
getMessages in class FacesContext

getRenderKit

public RenderKit getRenderKit()
Specified by:
getRenderKit in class FacesContext

getRenderResponse

public boolean getRenderResponse()
Specified by:
getRenderResponse in class FacesContext

getResponseComplete

public boolean getResponseComplete()
Specified by:
getResponseComplete in class FacesContext

setResponseStream

public void setResponseStream(ResponseStream responsestream)
Specified by:
setResponseStream in class FacesContext

getResponseStream

public ResponseStream getResponseStream()
Specified by:
getResponseStream in class FacesContext

setResponseWriter

public void setResponseWriter(ResponseWriter responsewriter)
Specified by:
setResponseWriter in class FacesContext

getResponseWriter

public ResponseWriter getResponseWriter()
Specified by:
getResponseWriter in class FacesContext

setViewRoot

public void setViewRoot(UIViewRoot viewRoot)
Specified by:
setViewRoot in class FacesContext

getViewRoot

public UIViewRoot getViewRoot()
Specified by:
getViewRoot in class FacesContext

addMessage

public void addMessage(String clientId,
                       FacesMessage message)
Specified by:
addMessage in class FacesContext

release

public void release()
Specified by:
release in class FacesContext

renderResponse

public void renderResponse()
Specified by:
renderResponse in class FacesContext

responseComplete

public void responseComplete()
Specified by:
responseComplete in class FacesContext


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