org.springframework.boot.web.embedded.undertow.UndertowDeploymentInfoCustomizer Java Examples
The following examples show how to use
org.springframework.boot.web.embedded.undertow.UndertowDeploymentInfoCustomizer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UndertowAutoConfigurationIT.java From joinfaces with Apache License 2.0 | 6 votes |
@Test void customize() throws IOException { UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory(); this.jsfUndertowFactoryCustomizer.customize(factory); UndertowDeploymentInfoCustomizer undertowDeploymentInfoCustomizer = factory.getDeploymentInfoCustomizers().iterator().next(); DeploymentInfo deploymentInfo = new DeploymentInfo(); deploymentInfo.setClassLoader(this.getClass().getClassLoader()); undertowDeploymentInfoCustomizer.customize(deploymentInfo); assertThat(deploymentInfo.getResourceManager().getResource("testUndertow.txt")) .isNotNull(); }
Example #2
Source File: Application.java From syndesis with Apache License 2.0 | 5 votes |
@Bean @Autowired public UndertowServletWebServerFactory embeddedServletContainerFactory(List<UndertowDeploymentInfoCustomizer> customizers) { UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory(); for (UndertowDeploymentInfoCustomizer customizer : customizers) { factory.addDeploymentInfoCustomizers(customizer); } return factory; }
Example #3
Source File: TracingHttpHandlerConfiguration.java From pivotal-bank-demo with Apache License 2.0 | 4 votes |
@Bean @Qualifier("httpTracingCustomizer") UndertowDeploymentInfoCustomizer httpTracingCustomizer( HttpTracing httpTracing) { TracingHttpHandler.Wrapper result = new TracingHttpHandler.Wrapper(httpTracing); return info -> info.addInitialHandlerChainWrapper(result); }
Example #4
Source File: KeycloakAutoConfiguration.java From keycloak with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnClass(name = {"io.undertow.Undertow"}) public UndertowDeploymentInfoCustomizer undertowKeycloakContextCustomizer() { return new KeycloakUndertowDeploymentInfoCustomizer(keycloakProperties); }