org.apache.commons.jxpath.servlet
Class ServletRequestHandler

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

public class ServletRequestHandler
extends HttpSessionHandler

Implementation of the DynamicPropertyHandler interface that provides access to attributes and parameters of a ServletRequest.

Version:
$Revision: 652848 $ $Date: 2008-05-02 12:53:50 -0500 (Fri, 02 May 2008) $
Author:
Dmitri Plotnikov

Constructor Summary
ServletRequestHandler()
           
 
Method Summary
protected  void collectPropertyNames(HashSet set, Object bean)
          Collect the property names from bean, storing in set.
 Object getProperty(Object bean, String property)
          Returns the value of the specified dynamic property.
 void setProperty(Object request, String property, Object value)
          Modifies the value of the specified dynamic property.
 
Methods inherited from class org.apache.commons.jxpath.servlet.ServletContextHandler
getPropertyNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRequestHandler

public ServletRequestHandler()
Method Detail

collectPropertyNames

protected void collectPropertyNames(HashSet set,
                                    Object bean)
Description copied from class: ServletContextHandler
Collect the property names from bean, storing in set.

Overrides:
collectPropertyNames in class HttpSessionHandler
Parameters:
set - destination
bean - to read

getProperty

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

Specified by:
getProperty in interface DynamicPropertyHandler
Overrides:
getProperty in class HttpSessionHandler
Parameters:
bean - to search
property - to retrieve
Returns:
Object

setProperty

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

Specified by:
setProperty in interface DynamicPropertyHandler
Overrides:
setProperty in class HttpSessionHandler
Parameters:
request - to modify
property - to modify
value - to set


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