org.vfny.geoserver.requests.readers.wfs
Class GetFeatureKvpReader
java.lang.Object
org.vfny.geoserver.requests.readers.KvpRequestReader
org.vfny.geoserver.requests.readers.wfs.GetFeatureKvpReader
- public class GetFeatureKvpReader
- extends KvpRequestReader
This utility reads in a GetFeature KVP request and turns it into a
GetFeature type request object.
If you pass this utility a KVP request (everything after the '?' in the
URI), it will translate this into a GetFeature type request object. Note
that you must check for validity before passing the request.
Constructor Summary |
GetFeatureKvpReader(java.util.Map kvPairs)
Constructor with raw request string. |
Method Summary |
FeatureRequest |
getRequest(boolean withLock,
javax.servlet.http.HttpServletRequest srequest)
Returns GetFeature request object. |
Request |
getRequest(javax.servlet.http.HttpServletRequest request)
returns the propper Request subclass for the set of parameters it was
setted up and the kind of request it is specialized for |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetFeatureKvpReader
public GetFeatureKvpReader(java.util.Map kvPairs)
- Constructor with raw request string. Calls parent.
- Parameters:
kvPairs
- kay/value pairs for a GetFeature request
getRequest
public Request getRequest(javax.servlet.http.HttpServletRequest request)
throws ServiceException
- Description copied from class:
KvpRequestReader
- returns the propper Request subclass for the set of parameters it was
setted up and the kind of request it is specialized for
- Specified by:
getRequest
in class KvpRequestReader
- Returns:
- DOCUMENT ME!
- Throws:
ServiceException
getRequest
public FeatureRequest getRequest(boolean withLock,
javax.servlet.http.HttpServletRequest srequest)
throws WfsException
- Returns GetFeature request object.
- Parameters:
withLock
- Whether this should be a GetFeatureWithLock request.srequest
- to set the request's servlet request
- Returns:
- Feature request object.
- Throws:
WfsException
- If no typename or featureid is present, or if the
filter list size doesn't match the feature list size.