/** * Helper method that just sets the GML 3.2 MIME type to force. If NULL is provided then GML * MIME type overriding will be deactivated. This changes will be applied to WFS global * configuration. */ protected void setGmlMimeTypeOverride(String mimeTypeToForce) { WFSInfo info = getGeoServer().getService(WFSInfo.class); GMLInfo gmlInfo = info.getGML().get(WFSInfo.Version.V_20); gmlInfo.setMimeTypeToForce(mimeTypeToForce); getGeoServer().save(info); }
gmlInfo.setMimeTypeToForce(null); getGeoServer().save(info);
gmlInfo.setMimeTypeToForce(null); getGeoServer().save(info);