* @param operationsMetadata
*/
private void OperationMetadata_DescribeRecord(Ows10Factory owsf, String baseUrl,
OperationsMetadataType operationsMetadata) {
// - DescribeRecord
OperationType describeRecord = owsf.createOperationType();
operationsMetadata.getOperation().add(describeRecord);
describeRecord.setName("DescribeRecord");
DCPType describeRecordDCP = owsf.createDCPType();
describeRecord.getDCP().add(describeRecordDCP);
HTTPType describeRecordHTTP = owsf.createHTTPType();
describeRecordDCP.setHTTP(describeRecordHTTP);
String describeRecordHref = ResponseUtils.buildURL(baseUrl, "csw",
new HashMap<String, String>(), URLType.SERVICE);
RequestMethodType describeRecordGet = owsf.createRequestMethodType();
describeRecordGet.setHref(describeRecordHref);
describeRecordHTTP.getGet().add(describeRecordGet);
RequestMethodType describeRecordPost = owsf.createRequestMethodType();
describeRecordPost.setHref(describeRecordHref);
// - DescribeRecord - constraints
DomainType describeRecordPostConstraints = owsf.createDomainType();
describeRecordPostConstraints.setName("PostEncoding");
describeRecordPostConstraints.getValue().add("XML");
describeRecordPost.getConstraint().add(describeRecordPostConstraints);
describeRecordHTTP.getPost().add(describeRecordPost);
// - Parameters
for (DomainType param : operationParameters.get("DescribeRecord"))
{
// clone the object, as the caps decorators might want to modify it
describeRecord.getParameter().add(EcoreUtil.copy(param));
}
// - Constraints
for (DomainType constraint : operationConstraints.get("DescribeRecord"))
{
// clone the object, as the caps decorators might want to modify it
describeRecord.getConstraint().add(EcoreUtil.copy(constraint));
}
}