@Test public void additionalCoupledPairedRoutingsDoWork() { WebServer webServer = WebServer.builder() .addSocket(SocketConfiguration.builder() .name("matched") .build(), Routing.builder().build()) .build(); assertThat(webServer.configuration().namedSocket("matched"), present()); }
@Override public ServerConfiguration configuration() { return configuration; }
NettyWebServer implements WebServer { @Override public ServerConfiguration configuration() { return configuration; } }
NettyWebServer implements WebServer { @Override public ServerConfiguration configuration() { return configuration; } NettyWebServer(ServerConfiguration config,
                   Routing routing,
                   Map<String, Routing> namedRoutings,
                   MessageBodyWriterContext writerContext,
                   MessageBodyReaderContext readerContext); }
NettyWebServer implements WebServer { @Override public ServerConfiguration configuration() { return configuration; } NettyWebServer(ServerConfiguration config,
                   Routing routing,
                   Map<String, Routing> namedRoutings,
                   MessageBodyWriterContext writerContext,
                   MessageBodyReaderContext readerContext); @Override ServerConfiguration configuration(); @Override MessageBodyReaderContext readerContext(); @Override MessageBodyWriterContext writerContext(); @Override synchronized Single<WebServer> start(); @Override Single<WebServer> shutdown(); @Override Single<WebServer> whenShutdown(); @Override boolean isRunning(); @Override Context context(); @Override int port(String name); }
NettyWebServer implements WebServer { @Override public ServerConfiguration configuration() { return configuration; } NettyWebServer(ServerConfiguration config,
                   Routing routing,
                   Map<String, Routing> namedRoutings,
                   MessageBodyWriterContext writerContext,
                   MessageBodyReaderContext readerContext); @Override ServerConfiguration configuration(); @Override MessageBodyReaderContext readerContext(); @Override MessageBodyWriterContext writerContext(); @Override synchronized Single<WebServer> start(); @Override Single<WebServer> shutdown(); @Override Single<WebServer> whenShutdown(); @Override boolean isRunning(); @Override Context context(); @Override int port(String name);  }