// filter out disabled coverages
for (Iterator it = coverages.iterator(); it.hasNext();) {
// GR: I don't think we should be removing directly from the list returned by
// Catalog?
CoverageInfo cv = (CoverageInfo) it.next();
if(!cv.enabled())
it.remove();
}
// filter out coverages that are not in the requested namespace
if(request.getNamespace() != null) {
String namespace = request.getNamespace();
for (Iterator it = coverages.iterator(); it.hasNext();) {
CoverageInfo cv = (CoverageInfo) it.next();
if(!namespace.equals(cv.getStore().getWorkspace().getName()))
it.remove();
}
}
Collections.sort(coverages, new CoverageInfoLabelComparator());
for (Iterator i = coverages.iterator(); i.hasNext();) {
CoverageInfo cv = (CoverageInfo) i.next();
if (cv.enabled())
handleCoverageSummary(cv);
}
end("wcs:Contents");
}