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