A request bean is an object which captures the parameters of an operation being requested to a service.
This class is intended to be subclassed in cases when the creation and initilization of a request bean cannot be created reflectivley.
The type of the request bean must be declared by the class. See {@link #getRequestBean()}.
Instances need to be declared in a spring context like the following:
<bean id="myKvpRequestReader" class="org.geoserver.ows.KvpRequestReader"> <constructor-arg value="com.xyz.MyRequestBean"/> </bean>
Where com.xyz.MyRequestBean
is a simple java bean such as: public class MyRequestBean { public void setX( Object x ) { ... } public Object getX() { ... } }
@author Justin Deoliveira, The Open Planning Project
If you pass this utility a KVP request (everything after the '?' in the GET request URI), it will translate this into a list of key-word value pairs.These pairs represent every element in the KVP GET request, legal or otherwise. This class may then be subclassed and used by request-specific classes. Because there is no error checking for the KVPs in this class, subclasses must check for validity of their KVPs before passing the their requests along, but - in return - this parent class is quite flexible. For example, native KVPs may be easily parsed in its subclasses, since they are simply read and stored (without analysis) in the constructer in this class. Note that all keys are translated to upper case to avoid case conflicts.
@author Rob Hranac, TOPP @author Chris Holmes, TOPP @author Gabriel Roldan @version $Id: KvpRequestReader.java 12648 2009-06-17 19:54:10Z jdeolive $
|
|
|
|
|
|
|
|
|
|
|
|