use of org.springframework.boot.context.embedded.undertow.UndertowDeploymentInfoCustomizer in project shinyproxy by openanalytics.
the class ShinyProxyApplication method servletContainer.
@Bean
public EmbeddedServletContainerFactory servletContainer() {
UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory();
factory.addDeploymentInfoCustomizers(new UndertowDeploymentInfoCustomizer() {
@Override
public void customize(DeploymentInfo deploymentInfo) {
deploymentInfo.addInitialHandlerChainWrapper(new RootHandlerWrapper());
}
});
factory.setPort(Integer.parseInt(environment.getProperty("shiny.proxy.port", "8080")));
return factory;
}
Aggregations