delegate = new GetFeatureKvpRequestReader(GetFeatureType.class, geoServer, filterFactory);
}
@Override
public Object read(Object request, Map kvp, Map rawKvp) throws Exception {
GetPropertyValueType gpv = (GetPropertyValueType) super.read(request, kvp, rawKvp);
//parse a GetFeature and copy the query
GetFeatureType gf = Wfs20Factory.eINSTANCE.createGetFeatureType();
delegate.read(gf, kvp, rawKvp);
if (gf.getAbstractQueryExpression().isEmpty()) {
throw new WFSException(gpv, "Request did not specify a query");
}
gpv.setAbstractQueryExpression(gf.getAbstractQueryExpression().get(0));
return gpv;
}