@SuppressWarnings("unchecked") protected Set<String> findParameters( final OperationType operationMetadata, final String parameterName) { Set<String> outputFormats = new HashSet<String>(); List<DomainType> parameters = operationMetadata.getParameter(); for (DomainType param : parameters) { String paramName = param.getName(); if (parameterName.equals(paramName)) { for (ValueType value : (List<ValueType>) param.getAllowedValues().getValue()) { outputFormats.add(value.getValue()); } } } return outputFormats; }
gco.setName("GetCapabilities"); gco.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(gco); dpo.setName("DescribeProcess"); dpo.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(dpo); eo.setName("Execute"); eo.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(eo);
/** * @return the operation metadata advertised in the capabilities for the given operation * @see #getServerSupportedOutputFormats(WFSOperationType) */ protected OperationType getOperationMetadata(final WFSOperationType operation) { final OperationsMetadataType operationsMetadata = capabilities.getOperationsMetadata(); @SuppressWarnings("unchecked") final List<OperationType> operations = operationsMetadata.getOperation(); final String expectedOperationName = operation.getName(); for (OperationType operationType : operations) { String operationName = operationType.getName(); if (expectedOperationName.equalsIgnoreCase(operationName)) { return operationType; } } throw new NoSuchElementException( "Operation metadata not found for " + expectedOperationName + " in the capabilities document"); }
gco.setName("GetCapabilities"); gco.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(gco); dpo.setName("DescribeProcess"); dpo.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(dpo); eo.setName("Execute"); eo.getDCP().add(Ows11Util.dcp("wps", request)); om.getOperation().add(eo);
/** * @return the operation metadata advertised in the capabilities for the given operation * @see #getServerSupportedOutputFormats(WFSOperationType) */ protected OperationType getOperationMetadata(final WFSOperationType operation) { final OperationsMetadataType operationsMetadata = capabilities.getOperationsMetadata(); @SuppressWarnings("unchecked") final List<OperationType> operations = operationsMetadata.getOperation(); final String expectedOperationName = operation.getName(); for (OperationType operationType : operations) { String operationName = operationType.getName(); if (expectedOperationName.equalsIgnoreCase(operationName)) { return operationType; } } throw new NoSuchElementException( "Operation metadata not found for " + expectedOperationName + " in the capabilities document"); }
net.opengis.ows11.OperationType opx = (net.opengis.ows11.OperationType) op; EList dcps = opx.getDCP(); for (int i = 0; i < dcps.size(); i++) { DCPType dcp = (DCPType) dcps.get(i); if (opx.getName().equalsIgnoreCase("GetCapabilities")) { request.setGetCapabilities(opt); } else if (opx.getName().equalsIgnoreCase("GetTile")) { request.setGetTile(opt);
@SuppressWarnings("unchecked") protected Set<String> findParameters( final OperationType operationMetadata, final String parameterName) { Set<String> outputFormats = new HashSet<String>(); List<DomainType> parameters = operationMetadata.getParameter(); for (DomainType param : parameters) { String paramName = param.getName(); if (parameterName.equals(paramName)) { for (ValueType value : (List<ValueType>) param.getAllowedValues().getValue()) { outputFormats.add(value.getValue()); } } } return outputFormats; }
net.opengis.ows11.OperationType opx = (net.opengis.ows11.OperationType) op; EList dcps = opx.getDCP(); for (int i = 0; i < dcps.size(); i++) { DCPType dcp = (DCPType) dcps.get(i); if (opx.getName().equalsIgnoreCase("GetCapabilities")) { request.setGetCapabilities(opt); } else if (opx.getName().equalsIgnoreCase("GetTile")) { request.setGetTile(opt);