@Override protected void wrapInternal(Map properties, SimpleHash model, WFSInfo wfsInfo) { WorkspaceInfo workspaceInfo = wfsInfo.getWorkspace(); properties.put("workspaceName", workspaceInfo != null ? workspaceInfo.getName() : "NO_WORKSPACE"); properties.put("enabled", wfsInfo.isEnabled() ? "true" : "false"); properties.put("name", wfsInfo.getName()); properties.put("title", wfsInfo.getTitle()); properties.put("maintainer", wfsInfo.getMaintainer()); properties.put("abstract", wfsInfo.getAbstract()); properties.put("accessConstraints", wfsInfo.getAccessConstraints()); properties.put("fees", wfsInfo.getFees()); properties.put("versions", wfsInfo.getVersions()); properties.put("keywords", wfsInfo.getKeywords()); properties.put("metadataLink", wfsInfo.getMetadataLink()); properties.put("citeCompliant", wfsInfo.isCiteCompliant() ? "true" : "false"); properties.put("onlineResource", wfsInfo.getOnlineResource()); properties.put("schemaBaseURL", wfsInfo.getSchemaBaseURL()); properties.put("verbose", wfsInfo.isVerbose() ? "true" : "false"); properties.put("maxFeatures", String.valueOf(wfsInfo.getMaxFeatures())); properties.put("isFeatureBounding", wfsInfo.isFeatureBounding() ? "true" : "false"); properties.put("serviceLevel", wfsInfo.getServiceLevel()); properties.put("isCanonicalSchemaLocation", wfsInfo.isCanonicalSchemaLocation() ? "true" : "false"); properties.put("encodeFeatureMember", wfsInfo.isEncodeFeatureMember() ? "true" : "false"); } });
protected void serviceIdentification(String version) { start("ows:ServiceIdentification"); element("ows:Title", wfs.getTitle()); element("ows:Abstract", wfs.getAbstract()); keywords(wfs.getKeywords()); element("ows:ServiceType", "WFS"); element("ows:ServiceTypeVersion", version); // advertise eventual profiles that might be implemented (only since OWS 1.1, thus // WFS 2.0) Version gtVersion = new Version(version); if (gtVersion.compareTo(new Version("2")) >= 0) { LinkedHashSet<String> profiles = new LinkedHashSet<>(); for (WFSExtendedCapabilitiesProvider provider : extCapsProviders) { List<String> providerProfiles = provider.getProfiles(gtVersion); profiles.addAll(providerProfiles); } for (String profile : profiles) { element("ows:Profile", profile); } } element("ows:Fees", wfs.getFees()); element("ows:AccessConstraints", wfs.getAccessConstraints()); end("ows:ServiceIdentification"); }
public void testValues() throws Exception { WFSInfo wfs = getGeoServerApplication().getGeoServer().getService(WFSInfo.class); login(); tester.startPage(WFSAdminPage.class); tester.assertModelValue("form:maxFeatures", wfs.getMaxFeatures()); tester.assertModelValue("form:keywords", wfs.getKeywords()); } }
@Test public void testValues() throws Exception { WFSInfo wfs = getGeoServerApplication().getGeoServer().getService(WFSInfo.class); login(); tester.startPage(WFSAdminPage.class); tester.assertModelValue("form:maxFeatures", wfs.getMaxFeatures()); tester.assertModelValue( "form:maxNumberOfFeaturesForPreview", wfs.getMaxNumberOfFeaturesForPreview()); tester.assertModelValue("form:keywords", wfs.getKeywords()); }
element("Abstract", wfs.getAbstract()); handleKeywords(wfs.getKeywords());