public OGCRequestDescription getRequestDescription(String requestName) { for (OGCRequestDescription rd : this.getCapabilityInformation().getRequestDescriptions()) { if (rd.getRequestName().equalsIgnoreCase(requestName)) return rd; } return null; }
public String getRequestURL(String requestName, String protocol, String requestMethod) { OGCRequestDescription rd = this.getRequestDescription(requestName); if (rd != null) { OGCOnlineResource ol = rd.getOnlineResouce(protocol, requestMethod); return ol != null ? ol.getHref() : null; } 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; }