// set the content disposition
StringBuffer filename = new StringBuffer();
boolean containsRasterData = false;
boolean isRegionatingFriendly = true;
for (int i = 0; i < request.getLayers().size(); i++) {
MapLayerInfo layer = request.getLayers().get(i);
String name = layer.getName();
containsRasterData = containsRasterData
|| (layer.getType() == MapLayerInfo.TYPE_RASTER);
if (layer.getType() == MapLayerInfo.TYPE_VECTOR) {
isRegionatingFriendly = isRegionatingFriendly
&& layer.getFeature().getFeatureSource(null, null).getQueryCapabilities()
.isReliableFIDSupported();
} else if (layer.getType() == MapLayerInfo.TYPE_REMOTE_VECTOR) {
isRegionatingFriendly = isRegionatingFriendly
&& layer.getRemoteFeatureSource().getQueryCapabilities()
.isReliableFIDSupported();
}
// strip off prefix
int j = name.indexOf(':');