public OGCRequestDescription getRequestDescription(String requestName) { for (OGCRequestDescription rd : this.getCapabilityInformation().getRequestDescriptions()) { if (rd.getRequestName().equalsIgnoreCase(requestName)) return rd; } return null; }
public Set<String> getImageFormats() { Set<OGCRequestDescription> requestDescriptions = this.getCapabilityInformation().getRequestDescriptions(); for (OGCRequestDescription rd : requestDescriptions) { if (rd.getRequestName().equals("GetMap")) return rd.getFormats(); } return null; }