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; }
constraints.add(new DomainType("ImplementsBasicWFS", TRUE)); WFSInfo.ServiceLevel serviceLevel = wfs.getServiceLevel(); constraints.add( new DomainType( "ImplementsTransactionalWFS", serviceLevel.contains(WFSInfo.ServiceLevel.TRANSACTIONAL) : FALSE)); constraints.add( new DomainType( "ImplementsLockingWFS", serviceLevel.contains(WFSInfo.ServiceLevel.COMPLETE) ? TRUE : FALSE)); constraints.add(new DomainType("KVPEncoding", TRUE)); constraints.add(new DomainType("XMLEncoding", TRUE)); constraints.add(new DomainType("SOAPEncoding", TRUE)); constraints.add(new DomainType("ImplementsInheritance", FALSE)); constraints.add(new DomainType("ImplementsRemoteResolve", FALSE)); constraints.add(new DomainType("ImplementsResultPaging", TRUE)); constraints.add(new DomainType("ImplementsStandardJoins", TRUE)); constraints.add(new DomainType("ImplementsSpatialJoins", TRUE)); constraints.add(new DomainType("ImplementsTemporalJoins", TRUE)); constraints.add(new DomainType("ImplementsFeatureVersioning", FALSE)); constraints.add(new DomainType("ManageStoredQueries", TRUE)); constraints.add(new DomainType("PagingIsTransactionSafe", FALSE)); constraints.add( new DomainType(
/** 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 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 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 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 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; }
/** 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; }
private DomainType getTimeoutParameter(WFSInfo wfs) { Integer timeout = wfs.getMetadata().get(TimeoutCallback.TIMEOUT_CONFIG_KEY, Integer.class); if (timeout == null) { timeout = 300; } DomainType result = new DomainType("Timeout", String.valueOf(timeout)); return result; }
/** 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; }
@Override public void updateRootOperationConstraints(Version version, List<DomainType> constraints) { if (isNSGProfileApplicable(version)) { for (DomainType constraint : constraints) { if (IMPLEMENTS_FEATURE_VERSIONING.equals(constraint.getName())) { constraint.setDefaultValue("TRUE"); } } } constraints.add(new DomainType(IMPLEMENTS_ENHANCED_PAGING, "TRUE")); }
/** 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; }
public DomainType getSrsParameter(WFSInfo wfs) { List<String> extraSRS = wfs.getSRS(); Set<String> srsParameterValues; GMLInfo gml = wfs.getGML().get(WFSInfo.Version.V_20); String prefix = gml.getSrsNameStyle().getPrefix(); Function<String, String> epsgMapper = srs -> qualifySRS(prefix, srs); if (extraSRS != null && !extraSRS.isEmpty()) { srsParameterValues = extraSRS.stream() .map(epsgMapper) .collect(Collectors.toCollection(LinkedHashSet::new)); } else { srsParameterValues = new LinkedHashSet<>(); } // add values from feature types gs.getCatalog() .getFeatureTypes() .forEach( ft -> { String srs = epsgMapper.apply(ft.getSRS()); srsParameterValues.add(srs); }); // build the parameter DomainType srsParameter = new DomainType("srsName", new ArrayList<>(srsParameterValues)); return srsParameter; }
DomainType timeoutParameter = getTimeoutParameter(wfs); DomainType versionParameter = new DomainType("version", Arrays.asList("2.0.0", "1.1.0", "1.0.0")); pageResults.getParameters().add(new DomainType("outputFormat", GML32_FORMAT)); operations.add(pageResults);