org.apache.commons.jxpath.servlet
Class ServletContextHandler

java.lang.Object
  extended by org.apache.commons.jxpath.servlet.ServletContextHandler
All Implemented Interfaces:
DynamicPropertyHandler
Direct Known Subclasses:
HttpSessionHandler

public class ServletContextHandler
extends Object
implements DynamicPropertyHandler

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
ServletContextHandler()
           
 
Method Summary
protected  void collectPropertyNames(HashSet set, Object bean)
          Collect the property names from bean, storing in set.
 Object 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextHandler

public ServletContextHandler()
Method Detail

getPropertyNames

public String[] getPropertyNames(Object context)
Description copied from interface: DynamicPropertyHandler
Returns a list of dynamic property names for the supplied object.

Specified by:
getPropertyNames in interface DynamicPropertyHandler
Parameters:
context - to inspect
Returns:
String[]

collectPropertyNames

protected void collectPropertyNames(HashSet set,
                                    Object bean)
Collect the property names from bean, storing in set.

Parameters:
set - destination
bean - to read

getProperty

public Object getProperty(Object context,
                          String property)
Description copied from interface: DynamicPropertyHandler
Returns the value of the specified dynamic property.

Specified by:
getProperty in interface DynamicPropertyHandler
Parameters:
context - to search
property - to retrieve
Returns:
Object

setProperty

public void setProperty(Object context,
                        String property,
                        Object value)
Description copied from interface: DynamicPropertyHandler
Modifies the value of the specified dynamic property.

Specified by:
setProperty in interface DynamicPropertyHandler
Parameters:
context - to modify
property - to modify
value - to set


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.