String href = methods.get(0).getHref(); debug("Returning operation URI for ", operation, "/", method, ": ", href); return href;
/** * Returns the operation URI for the given operation/http method as a String to avoid creating a * URL instance when not needed */ private String getOperationURI(WFSOperationType operation, HttpMethod method) { final OperationType operationType = getOperationMetadata(operation); final List<DCPType> dcps = operationType.getDCP(); for (DCPType dcp : dcps) { List<RequestMethodType> requests; if (GET == method) { requests = dcp.getHTTP().getGet(); } else { requests = dcp.getHTTP().getPost(); } for (RequestMethodType req : requests) { String href = req.getHref(); return href; } } return null; }
String href = methods.get(0).getHref(); debug("Returning operation URI for ", operation, "/", method, ": ", href); return href;