Class FacesWebContext

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, Context

    public class FacesWebContext
    extends WebContext

    Concrete implementation of WebContext suitable for use in JavaServer Faces apps. The abstract methods are mapped to the appropriate collections of the underlying FacesContext instance that is passed to the constructor (or the initialize method).

    Version:
    $Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.faces.context.FacesContext context
      The FacesContext instance for the request represented by this WebContext.
    • Field Detail

      • context

        private javax.faces.context.FacesContext context

        The FacesContext instance for the request represented by this WebContext.

    • Constructor Detail

      • FacesWebContext

        public FacesWebContext()

        Construct an uninitialized FacesWebContext instance.

      • FacesWebContext

        public FacesWebContext​(javax.faces.context.FacesContext context)

        Construct a FacesWebContext instance that is initialized with the specified JavaServer Faces API objects.

        Parameters:
        context - The FacesContext for this request
    • Method Detail

      • getContext

        public javax.faces.context.FacesContext getContext()

        Return the FacesContext instance for the request associated with this FacesWebContext.

        Returns:
        The FacesContext for this request
      • initialize

        public void initialize​(javax.faces.context.FacesContext context)

        Initialize (or reinitialize) this FacesWebContext instance for the specified JavaServer Faces API objects.

        Parameters:
        context - The FacesContext for this request
      • release

        public void release()

        Release references to allocated resources acquired in initialize() of via subsequent processing. After this method is called, subsequent calls to any other method than initialize() will return undefined results.

      • getHeader

        public java.util.Map getHeader()
        See the WebContext's Javadoc.
        Specified by:
        getHeader in class WebContext
        Returns:
        Header values Map.
      • getInitParam

        public java.util.Map getInitParam()
        See the WebContext's Javadoc.
        Specified by:
        getInitParam in class WebContext
        Returns:
        Initialization parameter Map.
      • getParam

        public java.util.Map getParam()
        See the WebContext's Javadoc.
        Specified by:
        getParam in class WebContext
        Returns:
        Request parameter Map.
      • getCookies

        public java.util.Map getCookies()
        See the WebContext's Javadoc.
        Specified by:
        getCookies in class WebContext
        Returns:
        Map of Cookies.
        Since:
        Chain 1.1