// in the config and people could check off the extras they want
// to allow.
// element("GML2", null); // old implementation
FeatureResponseDelegateProducerSpi spi;
//DJB: (see above comment, this fixes it0
// WFS config now has a "citeConformanceHacks" boolean in it.
// true --> only publish GML2 in caps file
// false -> publish all
WFS config = request.getWFS();
boolean onlyGML2 = config.getCiteConformanceHacks();
if (onlyGML2)
{
element("GML2",null);
}
else
{
//FULL MONTY
Iterator spi_it = FactoryFinder.factories(FeatureResponseDelegateProducerSpi.class);
while (spi_it.hasNext())
{
spi = (FeatureResponseDelegateProducerSpi) spi_it.next();
Set formats = spi.getSupportedFormats();
Iterator it =formats.iterator();
while (it.hasNext())
{
String format = (String) it.next();
element( format, null);