use of org.n52.shetland.ogc.ows.OwsOperation in project arctic-sea by 52North.
the class AbstractCapabilitiesBaseTypeDecoder method parseOperationMetadata.
private OwsOperationsMetadata parseOperationMetadata(OperationsMetadata operationsMetadata) {
if (operationsMetadata == null) {
return null;
}
List<OwsOperation> operations = parseOperations(operationsMetadata.getOperationArray());
List<OwsDomain> parameters = parseDomains(operationsMetadata.getParameterArray());
List<OwsDomain> constraints = parseDomains(operationsMetadata.getConstraintArray());
OwsOperationMetadataExtension extension = parseOperationsMetadataExtension(operationsMetadata.getExtendedCapabilities());
return new OwsOperationsMetadata(operations, parameters, constraints, extension);
}
use of org.n52.shetland.ogc.ows.OwsOperation in project arctic-sea by 52North.
the class AbstractGetCapabilitiesHandler method getOperations.
private OwsOperationsMetadata getOperations(String service, String version) throws OwsExceptionReport {
Collection<OwsDomain> parameters = getCommonParameters(service);
Collection<OwsDomain> constraints = null;
Collection<OwsOperation> operations = new LinkedList<>();
OwsOperationMetadataExtension extension = getOperationsMetadataExtension(service, version);
for (RequestOperatorKey operatorKey : requestOperatorRepository.getActiveRequestOperatorKeys(new OwsServiceKey(service, version))) {
Optional.ofNullable(requestOperatorRepository.getRequestOperator(operatorKey).getOperationMetadata(service, version)).ifPresent(operations::add);
}
return new OwsOperationsMetadata(operations, parameters, constraints, extension);
}
Aggregations