private RequestMethodType createRequestMethodType( Ows10Factory ows10Factory, Node getOrPostNode) { RequestMethodType methodType = ows10Factory.createRequestMethodType(); String href = (String) getOrPostNode.getAttributeValue("onlineResource"); methodType.setHref(href); return methodType; } }
String href = methods.get(0).getHref(); debug("Returning operation URI for ", operation, "/", method, ": ", href); return href;
transactionGet.setHref(transactionHref); transactionHTTP.getGet().add(transactionGet); transactionPost.setHref(transactionHref); transactionPostConstraints.getValue().add("XML"); transactionPost.getConstraint().add(transactionPostConstraints); transactionHTTP.getPost().add(transactionPost);
describeRecordGet.setHref(describeRecordHref); describeRecordHTTP.getGet().add(describeRecordGet); describeRecordPost.setHref(describeRecordHref); describeRecordPostConstraints.getValue().add("XML"); describeRecordPost.getConstraint().add(describeRecordPostConstraints); describeRecordHTTP.getPost().add(describeRecordPost);
getRecordByIdGet.setHref(getRecordByIdHref); getRecordByIdHTTP.getGet().add(getRecordByIdGet); getRecordByIdPost.setHref(getRecordByIdHref); getRecordByIdPostConstraints.getValue().add("XML"); getRecordByIdPost.getConstraint().add(getRecordByIdPostConstraints); getRecordByIdHTTP.getPost().add(getRecordByIdPost);
private RequestMethodType createRequestMethodType(Ows10Factory ows10Factory, Node getOrPostNode) { RequestMethodType methodType = ows10Factory.createRequestMethodType(); String href = (String) getOrPostNode.getAttributeValue("onlineResource"); methodType.setHref(href); return methodType; } }
/** * 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; }
describeRecordGet.setHref(describeRecordHref); describeRecordHTTP.getGet().add(describeRecordGet); describeRecordPost.setHref(describeRecordHref); describeRecordPostConstraints.getValue().add("XML"); describeRecordPost.getConstraint().add(describeRecordPostConstraints); describeRecordHTTP.getPost().add(describeRecordPost);
String href = methods.get(0).getHref(); debug("Returning operation URI for ", operation, "/", method, ": ", href); return href;
transactionGet.setHref(transactionHref); transactionHTTP.getGet().add(transactionGet); transactionPost.setHref(transactionHref); transactionPostConstraints.getValue().add("XML"); transactionPost.getConstraint().add(transactionPostConstraints); transactionHTTP.getPost().add(transactionPost);
getRecordByIdGet.setHref(getRecordByIdHref); getRecordByIdHTTP.getGet().add(getRecordByIdGet); getRecordByIdPost.setHref(getRecordByIdHref); getRecordByIdPostConstraints.getValue().add("XML"); getRecordByIdPost.getConstraint().add(getRecordByIdPostConstraints); getRecordByIdHTTP.getPost().add(getRecordByIdPost);
getDomainGet.setHref(getDomainHref); getDomainHTTP.getGet().add(getDomainGet); getDomainPost.setHref(getDomainHref); getDomainPostConstraints.getValue().add("XML"); getDomainPost.getConstraint().add(getDomainPostConstraints); getDomainHTTP.getPost().add(getDomainPost);
getDomainGet.setHref(getDomainHref); getDomainHTTP.getGet().add(getDomainGet); getDomainPost.setHref(getDomainHref); getDomainPostConstraints.getValue().add("XML"); getDomainPost.getConstraint().add(getDomainPostConstraints); getDomainHTTP.getPost().add(getDomainPost);
getRecordsGet.setHref(getRecordsHref); getRecordsHTTP.getGet().add(getRecordsGet); getRecordsPost.setHref(getRecordsHref); getRecordsPostConstraints.getValue().add("XML"); getRecordsPost.getConstraint().add(getRecordsPostConstraints); getRecordsHTTP.getPost().add(getRecordsPost);
getRecordsGet.setHref(getRecordsHref); getRecordsHTTP.getGet().add(getRecordsGet); getRecordsPost.setHref(getRecordsHref); getRecordsPostConstraints.getValue().add("XML"); getRecordsPost.getConstraint().add(getRecordsPostConstraints); getRecordsHTTP.getPost().add(getRecordsPost);