类org.springframework.boot.web.embedded.undertow.UndertowDeploymentInfoCustomizer源码实例Demo

下面列出了怎么用org.springframework.boot.web.embedded.undertow.UndertowDeploymentInfoCustomizer的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: joinfaces   文件: UndertowAutoConfigurationIT.java
@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();
}
 
源代码2 项目: syndesis   文件: Application.java
@Bean
@Autowired
public UndertowServletWebServerFactory embeddedServletContainerFactory(List<UndertowDeploymentInfoCustomizer> customizers) {
    UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory();
    for (UndertowDeploymentInfoCustomizer customizer : customizers) {
        factory.addDeploymentInfoCustomizers(customizer);
    }
    return factory;
}
 
@Bean @Qualifier("httpTracingCustomizer") UndertowDeploymentInfoCustomizer httpTracingCustomizer(
  HttpTracing httpTracing) {
  TracingHttpHandler.Wrapper result = new TracingHttpHandler.Wrapper(httpTracing);
  return info -> info.addInitialHandlerChainWrapper(result);
}
 
源代码4 项目: keycloak   文件: KeycloakAutoConfiguration.java
@Bean
@ConditionalOnClass(name = {"io.undertow.Undertow"})
public UndertowDeploymentInfoCustomizer undertowKeycloakContextCustomizer() {
    return new KeycloakUndertowDeploymentInfoCustomizer(keycloakProperties);
}
 
 类所在包
 同包方法