private boolean containsParameter(OperationMetadata operation, String parameterName) { return operation.getParameters().stream().anyMatch(p -> parameterName.equals(p.getName())); } }
protected OperationMetadata getPropertyValue() { OperationMetadata operation = new OperationMetadata("GetPropertyValue", true, true); operation .getParameters() .add(new DomainType("resolve", new String[] {"none", "local"})); operation .getParameters() .add(new DomainType("outputFormat", new String[] {GML32_FORMAT})); return operation; }
/** Encodes the Transaction ows:Operation element. */ protected OperationMetadata transaction() { OperationMetadata operation = new OperationMetadata("Transaction", true, true); operation .getParameters() .add(new DomainType("inputFormat", new String[] {GML32_FORMAT})); operation .getParameters() .add(new DomainType("releaseAction", new String[] {"ALL", "SOME"})); return operation; }
/** Encodes the CreateStoredQuery ows:Operation element. */ protected OperationMetadata createStoredQuery() { OperationMetadata operation = new OperationMetadata("CreateStoredQuery", false, true); operation .getParameters() .add( new DomainType( "language", new String[] {CreateStoredQuery.DEFAULT_LANGUAGE})); return operation; }
/** Encodes the GetFeatureWithLock ows:Operation element. */ protected OperationMetadata getFeatureWithLock() { String[] formats = getAvailableOutputFormatNames(GML32_FORMAT); OperationMetadata operation = new OperationMetadata("GetFeatureWithLock", true, true); operation .getParameters() .add(new DomainType("resultType", new String[] {"results", "hits"})); operation.getParameters().add(new DomainType("outputFormat", formats)); operation .getParameters() .add(new DomainType("resolve", new String[] {"none", "local"})); return operation; }
/** Encodes the LockFeature ows:Operation element. */ protected OperationMetadata lockFeature() { OperationMetadata operation = new OperationMetadata("LockFeature", true, true); operation .getParameters() .add(new DomainType("releaseAction", new String[] {"ALL", "SOME"})); return operation; }
/** Encodes the LockFeature ows:Operation element. */ protected OperationMetadata lockFeature() { OperationMetadata operation = new OperationMetadata("LockFeature", true, true); operation .getParameters() .add(new DomainType("releaseAction", new String[] {"ALL", "SOME"})); return operation; }
/** Encodes the DescribeFeatureType ows:Operation element. */ protected OperationMetadata describeFeatureType() { OperationMetadata operation = new OperationMetadata("DescribeFeatureType", true, true); operation .getParameters() .add(new DomainType("outputFormat", new String[] {GML_3_1_1_FORMAT})); return operation; }
/** Encodes the Transaction ows:Operation element. */ protected OperationMetadata transaction() { OperationMetadata operation = new OperationMetadata("Transaction", true, true); operation .getParameters() .add(new DomainType("inputFormat", new String[] {GML_3_1_1_FORMAT})); operation .getParameters() .add( new DomainType( "idgen", new String[] { "GenerateNew", "UseExisting", "ReplaceDuplicate" })); operation .getParameters() .add(new DomainType("releaseAction", new String[] {"ALL", "SOME"})); return operation; }
/** Encodes the GetFeatureWithLock ows:Operation element. */ protected OperationMetadata getFeatureWithLock() { String[] formats = getoutputFormatNames(); OperationMetadata operation = new OperationMetadata("GetFeatureWithLock", true, true); operation .getParameters() .add(new DomainType("resultType", new String[] {"results", "hits"})); operation.getParameters().add(new DomainType("outputFormat", formats)); return operation; }
/** Encodes the DescribeFeatureType ows:Operation element. */ protected OperationMetadata describeFeatureType() { OperationMetadata operation = new OperationMetadata("DescribeFeatureType", true, true); operation .getParameters() .add(new DomainType("outputFormat", new String[] {GML32_FORMAT})); return operation; }
/** Encodes the GetCapabilities ows:Operation element. */ protected OperationMetadata getCapabilities() { OperationMetadata operation = new OperationMetadata("GetCapabilities", true, true); operation .getParameters() .add(new DomainType("AcceptVersions", new String[] {"1.0.0", "1.1.0"})); operation .getParameters() .add(new DomainType("AcceptFormats", new String[] {"text/xml"})); operation .getParameters() .add( new DomainType( "Sections", new String[] { "ServiceIdentification", "ServiceProvider", "OperationsMetadata", "FeatureTypeList", "Filter_Capabilities" })); return operation; }
/** Encodes the GetCapabilities ows:Operation element. */ protected OperationMetadata getCapabilities() { OperationMetadata operation = new OperationMetadata("GetCapabilities", true, true); operation .getParameters() .add( new DomainType( "AcceptVersions", new String[] {"1.0.0", "1.1.0", "2.0.0"})); operation .getParameters() .add(new DomainType("AcceptFormats", new String[] {"text/xml"})); operation .getParameters() .add( new DomainType( "Sections", new String[] { "ServiceIdentification", "ServiceProvider", "OperationsMetadata", "FeatureTypeList", "Filter_Capabilities" })); return operation; }
/** Encodes the GetFeature ows:Operation element. */ protected OperationMetadata getFeature() { String[] formats = getoutputFormatNames(); OperationMetadata operation = new OperationMetadata("GetFeature", true, true); operation .getParameters() .add(new DomainType("resultType", new String[] {"results", "hits"})); operation.getParameters().add(new DomainType("outputFormat", formats)); operation .getConstraints() .add(new DomainType("LocalTraverseXLinkScope", new String[] {"2"})); return operation; }
/** Encodes the GetFeature ows:Operation element. */ protected OperationMetadata getFeature() { String[] formats = getAvailableOutputFormatNames(GML32_FORMAT); OperationMetadata operation = new OperationMetadata("GetFeature", true, true); operation .getParameters() .add(new DomainType("resultType", new String[] {"results", "hits"})); operation.getParameters().add(new DomainType("outputFormat", formats)); operation.getConstraints().add(new DomainType("PagingIsTransactionSafe", FALSE)); operation .getConstraints() .add(new DomainType("CountDefault", String.valueOf(wfs.getMaxFeatures()))); operation .getParameters() .add(new DomainType("resolve", new String[] {"none", "local"})); return operation; }
pageResults.getParameters().add(new DomainType("outputFormat", GML32_FORMAT)); operations.add(pageResults); operation.getParameters().add(versionParameter); operation.getParameters().add(srsParameter); operation.getParameters().add(timeoutParameter);
protected void operation(OperationMetadata operation) { start("ows:Operation", attributes(new String[] {"name", operation.getName()})); String serviceURL = buildURL(request.getBaseUrl(), "wfs", null, URLType.SERVICE); // dcp delegate.dcp(serviceURL, operation.isGet(), operation.isPost()); // parameters for (DomainType parameter : operation.getParameters()) { domainType("ows:Parameter", parameter); } // constraints for (DomainType constraint : operation.getConstraints()) { domainType("ows:Constraint", constraint); } end("ows:Operation"); }
protected void operation(OperationMetadata operation) { start("ows:Operation", attributes(new String[] {"name", operation.getName()})); String serviceURL = buildURL(request.getBaseUrl(), "wfs", null, URLType.SERVICE); // dcp dcp(serviceURL, operation.isGet(), operation.isPost()); // parameters for (DomainType parameter : operation.getParameters()) { domainType("ows:Parameter", parameter); } // constraints for (DomainType constraint : operation.getConstraints()) { domainType("ows:Constraint", constraint); } end("ows:Operation"); }