Search in sources :

Example 1 with OwsOperation

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);
}
Also used : OwsDomain(org.n52.shetland.ogc.ows.OwsDomain) OwsOperationsMetadata(org.n52.shetland.ogc.ows.OwsOperationsMetadata) OwsOperation(org.n52.shetland.ogc.ows.OwsOperation) OwsOperationMetadataExtension(org.n52.shetland.ogc.ows.OwsOperationMetadataExtension)

Example 2 with OwsOperation

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);
}
Also used : OwsDomain(org.n52.shetland.ogc.ows.OwsDomain) RequestOperatorKey(org.n52.iceland.request.operator.RequestOperatorKey) OwsOperationsMetadata(org.n52.shetland.ogc.ows.OwsOperationsMetadata) OwsOperation(org.n52.shetland.ogc.ows.OwsOperation) OwsServiceKey(org.n52.shetland.ogc.ows.service.OwsServiceKey) OwsOperationMetadataExtension(org.n52.shetland.ogc.ows.OwsOperationMetadataExtension) LinkedList(java.util.LinkedList)

Aggregations

OwsDomain (org.n52.shetland.ogc.ows.OwsDomain)2 OwsOperation (org.n52.shetland.ogc.ows.OwsOperation)2 OwsOperationMetadataExtension (org.n52.shetland.ogc.ows.OwsOperationMetadataExtension)2 OwsOperationsMetadata (org.n52.shetland.ogc.ows.OwsOperationsMetadata)2 LinkedList (java.util.LinkedList)1 RequestOperatorKey (org.n52.iceland.request.operator.RequestOperatorKey)1 OwsServiceKey (org.n52.shetland.ogc.ows.service.OwsServiceKey)1