Class PageScopeContext


  • public class PageScopeContext
    extends java.lang.Object
    A lightweight wrapper for PageContext that restricts access to attributes of the "page" scope. This object is needed so that XPath "foo" would lookup the attribute "foo" in all scopes, while "$page/foo" would only look in the "page" scope.
    Version:
    $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
    Author:
    Dmitri Plotnikov
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.servlet.jsp.PageContext pageContext  
    • Constructor Summary

      Constructors 
      Constructor Description
      PageScopeContext​(javax.servlet.jsp.PageContext pageContext)
      Create a new PageScopeContext.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String attribute)
      Get the value of the specified attribute.
      java.util.Enumeration getAttributeNames()
      Returns attributes of the pageContext declared in the "page" scope.
      void setAttribute​(java.lang.String attribute, java.lang.Object value)
      Set the specified attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pageContext

        private javax.servlet.jsp.PageContext pageContext
    • Constructor Detail

      • PageScopeContext

        public PageScopeContext​(javax.servlet.jsp.PageContext pageContext)
        Create a new PageScopeContext.
        Parameters:
        pageContext - base
    • Method Detail

      • getAttributeNames

        public java.util.Enumeration getAttributeNames()
        Returns attributes of the pageContext declared in the "page" scope.
        Returns:
        Enumeration of attribute names
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String attribute)
        Get the value of the specified attribute.
        Parameters:
        attribute - name
        Returns:
        Object
      • setAttribute

        public void setAttribute​(java.lang.String attribute,
                                 java.lang.Object value)
        Set the specified attribute.
        Parameters:
        attribute - to set
        value - to set