Class PageScopeContext

java.lang.Object
org.apache.commons.jxpath.servlet.PageScopeContext

public class PageScopeContext extends 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.
  • Constructor Details

    • PageScopeContext

      public PageScopeContext(PageContext pageContext)
      Constructs a new PageScopeContext.
      Parameters:
      pageContext - base
  • Method Details

    • getAttribute

      public Object getAttribute(String attribute)
      Gets the value of the specified attribute.
      Parameters:
      attribute - name
      Returns:
      Object
    • getAttributeNames

      Returns attributes of the pageContext declared in the "page" scope.
      Returns:
      Enumeration of attribute names
    • setAttribute

      public void setAttribute(String attribute, Object value)
      Sets the specified attribute.
      Parameters:
      attribute - to set
      value - to set