metas.add(meta);
}
}
WFSInfo wfs = getInfo();
//set feature bounding parameter
//JD: this is quite bad as its not at all thread-safe, once we remove the configuration
// as being a singleton on trunk/2.0.x this should not be an issue
if ( wfs.isFeatureBounding() ) {
configuration.getProperties().remove( GMLConfiguration.NO_FEATURE_BOUNDS );
}
else {
configuration.getProperties().add( GMLConfiguration.NO_FEATURE_BOUNDS);
}
/*
* Set property encoding featureMemeber as opposed to featureMembers
*
*/
if (wfs.isEncodeFeatureMember()) {
configuration.getProperties().add(GMLConfiguration.ENCODE_FEATURE_MEMBER);
} else {
configuration.getProperties().remove(GMLConfiguration.ENCODE_FEATURE_MEMBER);
}
//declare wfs schema location
BaseRequestType gft = (BaseRequestType)getFeature.getParameters()[0];
Encoder encoder = createEncoder(configuration, ns2metas, gft);
encoder.setEncoding(Charset.forName( global.getCharset() ));
if (wfs.isCanonicalSchemaLocation()) {
encoder.setSchemaLocation(org.geoserver.wfs.xml.v1_1_0.WFS.NAMESPACE,
WFS.CANONICAL_SCHEMA_LOCATION);
} else {
encoder.setSchemaLocation(org.geoserver.wfs.xml.v1_1_0.WFS.NAMESPACE,
buildSchemaURL(gft.getBaseUrl(), "wfs/1.1.0/wfs.xsd"));