Class PageScopeContext
java.lang.Object
org.apache.commons.jxpath.servlet.PageScopeContext
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 Summary
ConstructorsConstructorDescriptionPageScopeContext
(PageContext pageContext) Constructs a new PageScopeContext. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attribute) Gets the value of the specified attribute.Returns attributes of the pageContext declared in the "page" scope.void
setAttribute
(String attribute, Object value) Sets the specified attribute.
-
Constructor Details
-
PageScopeContext
Constructs a new PageScopeContext.- Parameters:
pageContext
- base
-
-
Method Details
-
getAttribute
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
Sets the specified attribute.- Parameters:
attribute
- to setvalue
- to set
-