@Test public void shouldCustomizeWebServerFactory() { customizer.customize(mockVertxReactiveWebServerFactory); verify(mockVertxReactiveWebServerFactory).registerHttpServerOptionsCustomizer(any(PortCustomizer.class)); verify(mockVertxReactiveWebServerFactory).registerHttpServerOptionsCustomizer(any(AddressCustomizer.class)); verify(mockVertxReactiveWebServerFactory).registerHttpServerOptionsCustomizer(any(SslCustomizer.class)); verify(mockVertxReactiveWebServerFactory).registerHttpServerOptionsCustomizer(any(CompressionCustomizer.class)); verify(mockVertxReactiveWebServerFactory).registerHttpServerOptionsCustomizer(mockHttpServerOptionsCustomizer); }
@Override public void customize(VertxReactiveWebServerFactory factory) { factory.registerHttpServerOptionsCustomizer(new PortCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new AddressCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new SslCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new CompressionCustomizer(factory)); if (userDefinedCustomizers != null) { userDefinedCustomizers.forEach(factory::registerHttpServerOptionsCustomizer); } }
VertxReactiveWebServerFactoryCustomizer implements WebServerFactoryCustomizer<VertxReactiveWebServerFactory>, Ordered { @Override public void customize(VertxReactiveWebServerFactory factory) { factory.registerHttpServerOptionsCustomizer(new PortCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new AddressCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new SslCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new CompressionCustomizer(factory)); if (userDefinedCustomizers != null) { userDefinedCustomizers.forEach(factory::registerHttpServerOptionsCustomizer); } } }
VertxReactiveWebServerFactoryCustomizer implements WebServerFactoryCustomizer<VertxReactiveWebServerFactory>, Ordered { @Override public void customize(VertxReactiveWebServerFactory factory) { factory.registerHttpServerOptionsCustomizer(new PortCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new AddressCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new SslCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new CompressionCustomizer(factory)); if (userDefinedCustomizers != null) { userDefinedCustomizers.forEach(factory::registerHttpServerOptionsCustomizer); } } VertxReactiveWebServerFactoryCustomizer(Set<HttpServerOptionsCustomizer> userDefinedCustomizers); }
VertxReactiveWebServerFactoryCustomizer implements WebServerFactoryCustomizer<VertxReactiveWebServerFactory>, Ordered { @Override public void customize(VertxReactiveWebServerFactory factory) { factory.registerHttpServerOptionsCustomizer(new PortCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new AddressCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new SslCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new CompressionCustomizer(factory)); if (userDefinedCustomizers != null) { userDefinedCustomizers.forEach(factory::registerHttpServerOptionsCustomizer); } } VertxReactiveWebServerFactoryCustomizer(Set<HttpServerOptionsCustomizer> userDefinedCustomizers); @Override void customize(VertxReactiveWebServerFactory factory); @Override int getOrder(); }
VertxReactiveWebServerFactoryCustomizer implements WebServerFactoryCustomizer<VertxReactiveWebServerFactory>, Ordered { @Override public void customize(VertxReactiveWebServerFactory factory) { factory.registerHttpServerOptionsCustomizer(new PortCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new AddressCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new SslCustomizer(factory)); factory.registerHttpServerOptionsCustomizer(new CompressionCustomizer(factory)); if (userDefinedCustomizers != null) { userDefinedCustomizers.forEach(factory::registerHttpServerOptionsCustomizer); } } VertxReactiveWebServerFactoryCustomizer(Set<HttpServerOptionsCustomizer> userDefinedCustomizers); @Override void customize(VertxReactiveWebServerFactory factory); @Override int getOrder();  }