String query = "<ogc:FeatureId fid=\"comuni11.2671\"/>";
String request = new String(IOUtils.toByteArray(postContent), "UTF-8");
if (isHitsRequest(request, query))
{
assertXMLEqual("tinyows/CountFeatureByIdRequest.xml", request);
return new TestHttpResponse(TestData.getResource(this, "tinyows/CountFeatureById.xml"), "text/xml");
}
else if (isResultsRequest(request, query))
{
assertXMLEqual("tinyows/GetFeatureByIdRequest.xml", request);
return new TestHttpResponse(TestData.getResource(this, "tinyows/GetFeatureById.xml"), "text/xml");
}
else if (isDescribeFeatureRequest(request))
{
return new TestHttpResponse(TestData.getResource(this, "tinyows/DescribeFeatureType.xsd"), "text/xml");
}
else
{
return super.post(url, new ByteArrayInputStream(request.getBytes("UTF-8")), postContentType);
}