org.apache.myfaces.context.servlet
Class FacesContextImpl
java.lang.Object
javax.faces.context.FacesContext
org.apache.myfaces.context.servlet.FacesContextImpl
- Direct Known Subclasses:
- ServletFacesContextImpl
public class FacesContextImpl
- extends FacesContext
- Version:
- $Revision: 902957 $ $Date: 2010-01-25 14:42:58 -0500 (Mon, 25 Jan 2010) $
- Author:
- Manfred Geiler (latest modification by $Author: cjhoward $), Anton Koinov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacesContextImpl
public FacesContextImpl(javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
FacesContextImpl
public FacesContextImpl(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ReleaseableFacesContextFactory facesContextFactory)
getExceptionHandler
public ExceptionHandler getExceptionHandler()
- Overrides:
getExceptionHandler
in class FacesContext
getExternalContext
public final ExternalContext getExternalContext()
- Specified by:
getExternalContext
in class FacesContext
getMaximumSeverity
public final FacesMessage.Severity getMaximumSeverity()
- Specified by:
getMaximumSeverity
in class FacesContext
getMessageList
public java.util.List<FacesMessage> getMessageList()
- Overrides:
getMessageList
in class FacesContext
getMessageList
public java.util.List<FacesMessage> getMessageList(java.lang.String clientId)
- Overrides:
getMessageList
in class FacesContext
getMessages
public final java.util.Iterator<FacesMessage> getMessages()
- Specified by:
getMessages
in class FacesContext
getApplication
public final Application getApplication()
- Specified by:
getApplication
in class FacesContext
getClientIdsWithMessages
public final java.util.Iterator<java.lang.String> getClientIdsWithMessages()
- Specified by:
getClientIdsWithMessages
in class FacesContext
getCurrentPhaseId
public PhaseId getCurrentPhaseId()
- Overrides:
getCurrentPhaseId
in class FacesContext
getMessages
public final java.util.Iterator<FacesMessage> getMessages(java.lang.String clientId)
- Specified by:
getMessages
in class FacesContext
getPartialViewContext
public PartialViewContext getPartialViewContext()
- Overrides:
getPartialViewContext
in class FacesContext
getRenderKit
public final RenderKit getRenderKit()
- Specified by:
getRenderKit
in class FacesContext
getRenderResponse
public final boolean getRenderResponse()
- Specified by:
getRenderResponse
in class FacesContext
getResponseComplete
public final boolean getResponseComplete()
- Specified by:
getResponseComplete
in class FacesContext
setResponseStream
public final void setResponseStream(ResponseStream responseStream)
- Specified by:
setResponseStream
in class FacesContext
getResponseStream
public final ResponseStream getResponseStream()
- Specified by:
getResponseStream
in class FacesContext
setResponseWriter
public final void setResponseWriter(ResponseWriter responseWriter)
- Specified by:
setResponseWriter
in class FacesContext
getResponseWriter
public final ResponseWriter getResponseWriter()
- Specified by:
getResponseWriter
in class FacesContext
setViewRoot
public final void setViewRoot(UIViewRoot viewRoot)
- Specified by:
setViewRoot
in class FacesContext
getViewRoot
public final UIViewRoot getViewRoot()
- Specified by:
getViewRoot
in class FacesContext
addMessage
public final void addMessage(java.lang.String clientId,
FacesMessage message)
- Specified by:
addMessage
in class FacesContext
release
public final void release()
- Specified by:
release
in class FacesContext
isPostback
public boolean isPostback()
- Overrides:
isPostback
in class FacesContext
renderResponse
public final void renderResponse()
- Specified by:
renderResponse
in class FacesContext
responseComplete
public final void responseComplete()
- Specified by:
responseComplete
in class FacesContext
setCurrentPhaseId
public void setCurrentPhaseId(PhaseId currentPhaseId)
- Overrides:
setCurrentPhaseId
in class FacesContext
setExceptionHandler
public void setExceptionHandler(ExceptionHandler exceptionHandler)
- Overrides:
setExceptionHandler
in class FacesContext
getELContext
public final javax.el.ELContext getELContext()
- Overrides:
getELContext
in class FacesContext
getAttributes
public java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
- Returns a mutable map of attributes associated with this faces context when
FacesContext.release
is called the map must be cleared!
Note this map is not associated with the request map the request map still is accessible via the
FacesContext.getExternalContext.getRequestMap
method!
Also the scope is different to the request map, this map has the scope of the context, and is cleared once the
release method on the context is called!
Also the map does not cause any events according to the spec!
- Overrides:
getAttributes
in class FacesContext
- Throws:
java.lang.IllegalStateException
- if the current context already is released!- Since:
- JSF 2.0
validationFailed
public void validationFailed()
- Overrides:
validationFailed
in class FacesContext
isValidationFailed
public boolean isValidationFailed()
- Overrides:
isValidationFailed
in class FacesContext
isProcessingEvents
public boolean isProcessingEvents()
- Overrides:
isProcessingEvents
in class FacesContext
setProcessingEvents
public void setProcessingEvents(boolean processingEvents)
- Overrides:
setProcessingEvents
in class FacesContext
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.