@Test public void testHttpDisabled() throws IOException, ServerConfigurationException, JsonException { try (InputStream is = PropServerConfigurationTest.class.getResourceAsStream("/server-http-disabled.conf")) { Properties properties = new Properties(); properties.load(is); File root = new File(temp.getRoot(), "data"); TestUtils.copyMimeTypes(root.getAbsolutePath()); PropServerConfiguration configuration = new PropServerConfiguration(root.getAbsolutePath(), properties); Assert.assertFalse(configuration.getHttpServerConfiguration().isEnabled()); } }
@Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; }
PropServerConfiguration implements ServerConfiguration { @Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; } }
PropServerConfiguration implements ServerConfiguration { @Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; } PropServerConfiguration(String root, Properties properties); }
PropServerConfiguration implements ServerConfiguration { @Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; } PropServerConfiguration(String root, Properties properties); @Override CairoConfiguration getCairoConfiguration(); @Override HttpServerConfiguration getHttpServerConfiguration(); @Override LineUdpReceiverConfiguration getLineUdpReceiverConfiguration(); @Override LineTcpReceiverConfiguration getLineTcpReceiverConfiguration(); @Override WorkerPoolConfiguration getWorkerPoolConfiguration(); @Override PGWireConfiguration getPGWireConfiguration(); }
PropServerConfiguration implements ServerConfiguration { @Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; } PropServerConfiguration(String root, Properties properties); @Override CairoConfiguration getCairoConfiguration(); @Override HttpServerConfiguration getHttpServerConfiguration(); @Override LineUdpReceiverConfiguration getLineUdpReceiverConfiguration(); @Override LineTcpReceiverConfiguration getLineTcpReceiverConfiguration(); @Override WorkerPoolConfiguration getWorkerPoolConfiguration(); @Override PGWireConfiguration getPGWireConfiguration(); static final String CONFIG_DIRECTORY; }