Class ServletContextHandler
- java.lang.Object
-
- org.apache.commons.jxpath.servlet.ServletContextHandler
-
- All Implemented Interfaces:
DynamicPropertyHandler
- Direct Known Subclasses:
HttpSessionHandler
public class ServletContextHandler extends java.lang.Object implements DynamicPropertyHandler
Implementation of theDynamicPropertyHandlerinterface that provides access to attributes of aServletContext.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
-
Constructor Summary
Constructors Constructor Description ServletContextHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectPropertyNames(java.util.HashSet set, java.lang.Object bean)Collect the property names from bean, storing in set.java.lang.ObjectgetProperty(java.lang.Object context, java.lang.String property)Returns the value of the specified dynamic property.java.lang.String[]getPropertyNames(java.lang.Object context)Returns a list of dynamic property names for the supplied object.voidsetProperty(java.lang.Object context, java.lang.String property, java.lang.Object value)Modifies the value of the specified dynamic property.
-
-
-
Method Detail
-
getPropertyNames
public java.lang.String[] getPropertyNames(java.lang.Object context)
Description copied from interface:DynamicPropertyHandlerReturns a list of dynamic property names for the supplied object.- Specified by:
getPropertyNamesin interfaceDynamicPropertyHandler- Parameters:
context- to inspect- Returns:
- String[]
-
collectPropertyNames
protected void collectPropertyNames(java.util.HashSet set, java.lang.Object bean)Collect the property names from bean, storing in set.- Parameters:
set- destinationbean- to read
-
getProperty
public java.lang.Object getProperty(java.lang.Object context, java.lang.String property)Description copied from interface:DynamicPropertyHandlerReturns the value of the specified dynamic property.- Specified by:
getPropertyin interfaceDynamicPropertyHandler- Parameters:
context- to searchproperty- to retrieve- Returns:
- Object
-
setProperty
public void setProperty(java.lang.Object context, java.lang.String property, java.lang.Object value)Description copied from interface:DynamicPropertyHandlerModifies the value of the specified dynamic property.- Specified by:
setPropertyin interfaceDynamicPropertyHandler- Parameters:
context- to modifyproperty- to modifyvalue- to set
-
-