Refine search
if (workspace != null) { ws = catalog.getWorkspaceByName(workspace); old = geoServer.getService(ws, serviceClass); } else { old = geoServer.getService(serviceClass); geoServer.save(old); } else {
private void setupESRIFormatByDefault(GeoServer geoServer, Boolean value) throws IOException { WFSInfo wfsInfo = geoServer.getService(WFSInfo.class); MetadataMap metadata = wfsInfo.getMetadata(); metadata.put(ShapeZipOutputFormat.SHAPE_ZIP_DEFAULT_PRJ_IS_ESRI, value); geoServer.save(wfsInfo); }
protected void setOutputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxOutputMemory(kbytes); gs.save(info); }
protected void setInputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxInputMemory(kbytes); gs.save(info); }
private void setOutputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxOutputMemory(kbytes); gs.save(info); } }
protected void setInputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxInputMemory(kbytes); gs.save(info); }
protected void setInputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxInputMemory(kbytes); gs.save(info); }
protected void setOutputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxOutputMemory(kbytes); gs.save(info); }
protected void setOutputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxOutputMemory(kbytes); gs.save(info); }
private void setOutputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxOutputMemory(kbytes); gs.save(info); }
private void setInputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxInputMemory(kbytes); gs.save(info); }
private void setInputLimit(int kbytes) { GeoServer gs = getGeoServer(); WCSInfo info = gs.getService(WCSInfo.class); info.setMaxInputMemory(kbytes); gs.save(info); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); GeoServer geoServer = getGeoServer(); WFSInfo service = geoServer.getService(WFSInfo.class); service.getSRS().add("4326"); service.getSRS().add("3395"); geoServer.save(service); }
public void setTimeout(int timeout) { GeoServer gs = getGeoServer(); WFSInfo wfs = gs.getService(WFSInfo.class); wfs.getMetadata().put(TimeoutCallback.TIMEOUT_CONFIG_KEY, timeout); gs.save(wfs); }
@Before public void cleanupLimitedSRS() { WCSInfo service = getGeoServer().getService(WCSInfo.class); service.getSRS().clear(); getGeoServer().save(service); }
/** * Helper method that just sets the GML 3.2 MIME type to force. If NULL is provided then GML * MIME type overriding will be deactivated. This changes will be applied to WFS global * configuration. */ protected void setGmlMimeTypeOverride(String mimeTypeToForce) { WFSInfo info = getGeoServer().getService(WFSInfo.class); GMLInfo gmlInfo = info.getGML().get(WFSInfo.Version.V_20); gmlInfo.setMimeTypeToForce(mimeTypeToForce); getGeoServer().save(info); }
@Test public void testDisabledServiceResponse() throws Exception { Logging.getLogger("org.geoserver.ows").setLevel(Level.OFF); WMSInfo wms = getGeoServer().getService(WMSInfo.class); wms.setEnabled(false); getGeoServer().save(wms); Document doc = getAsDOM("wms?service=WMS&version=1.1.1&request=getCapabilities"); assertEquals("ows:ExceptionReport", doc.getDocumentElement().getNodeName()); }
@Test public void testEnabledServiceResponse() throws Exception { WCSInfo wcs = getGeoServer().getService(WCSInfo.class); wcs.setEnabled(true); getGeoServer().save(wcs); Document doc = getAsDOM("wcs?service=WCS&request=getCapabilities"); assertEquals("wcs:Capabilities", doc.getDocumentElement().getNodeName()); } }
@Override protected void oneTimeSetUp() throws Exception { super.oneTimeSetUp(); WPSInfo wps = getGeoServer().getService(WPSInfo.class); // want at least two asynchronous processes to test concurrency wps.setMaxAsynchronousProcesses(Math.max(2, wps.getMaxAsynchronousProcesses())); getGeoServer().save(wps); }
@Test public void testEnabledServiceResponse() throws Exception { WMSInfo wms = getGeoServer().getService(WMSInfo.class); wms.setEnabled(true); getGeoServer().save(wms); Document doc = getAsDOM("wms?service=WMS&version=1.1.1&request=getCapabilities"); assertEquals("WMT_MS_Capabilities", doc.getDocumentElement().getNodeName()); } }