org.apache.commons.jxpath.servlet
Class ServletContextHandler

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

public class ServletContextHandler
extends java.lang.Object
implements DynamicPropertyHandler

Implementation of the DynamicPropertyHandler interface that provides access to attributes of a ServletContext.

Version:
$Revision: 1.6 $ $Date: 2004/05/08 15:10:49 $
Author:
Dmitri Plotnikov

Field Summary
private static java.lang.String[] STRING_ARRAY
           
 
Constructor Summary
ServletContextHandler()
           
 
Method Summary
protected  void collectPropertyNames(java.util.HashSet set, java.lang.Object bean)
           
 java.lang.Object getProperty(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.
 void setProperty(java.lang.Object context, java.lang.String property, java.lang.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
 

Field Detail

STRING_ARRAY

private static final java.lang.String[] STRING_ARRAY
Constructor Detail

ServletContextHandler

public ServletContextHandler()
Method Detail

getPropertyNames

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

Specified by:
getPropertyNames in interface DynamicPropertyHandler

collectPropertyNames

protected void collectPropertyNames(java.util.HashSet set,
                                    java.lang.Object bean)

getProperty

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

Specified by:
getProperty in interface DynamicPropertyHandler

setProperty

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

Specified by:
setProperty in interface DynamicPropertyHandler