org.xins.common.servlet
Class ServletRequestPropertyReader

java.lang.Object
  extended byorg.xins.common.collections.AbstractPropertyReader
      extended byorg.xins.common.servlet.ServletRequestPropertyReader
All Implemented Interfaces:
PropertyReader, Serializable

public final class ServletRequestPropertyReader
extends AbstractPropertyReader

Implementation of a PropertyReader that returns the request parameters from a ServletRequest object.

Since:
XINS 1.0.0
Version:
$Revision: 1.22.2.1 $ $Date: 2007/02/01 10:01:25 $
Author:
Ernst de Haan, Anthony Goubard
See Also:
Serialized Form

Constructor Summary
ServletRequestPropertyReader(HttpServletRequest request)
          Constructs a new ServletRequestPropertyReader for an HttpServletRequest.
ServletRequestPropertyReader(ServletRequest request)
          Constructs a new ServletRequestPropertyReader for a ServletRequest.
 
Methods inherited from class org.xins.common.collections.AbstractPropertyReader
get, getNames, getPropertiesMap, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRequestPropertyReader

public ServletRequestPropertyReader(ServletRequest request)
                             throws NullPointerException
Constructs a new ServletRequestPropertyReader for a ServletRequest.

Parameters:
request - the ServletRequest object, cannot be null.
Throws:
NullPointerException - if request == null.

ServletRequestPropertyReader

public ServletRequestPropertyReader(HttpServletRequest request)
                             throws IllegalArgumentException,
                                    ParseException
Constructs a new ServletRequestPropertyReader for an HttpServletRequest.

Parameters:
request - the HttpServletRequest object, cannot be null.
Throws:
IllegalArgumentException - if request == null.
ParseException - if the query string in the specified servlet request cannot be parsed.
Since:
XINS 1.4.0


See http://www.xins.org/.