Package org.vrspace.server.config
Class EmbeddedTomcatCustomizer
java.lang.Object
org.vrspace.server.config.EmbeddedTomcatCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
@Component
@ConditionalOnProperty("server.servlet.register-default-servlet")
public class EmbeddedTomcatCustomizer
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
Adds content and client (babylon) directories to content path, and enables
directory listings. Conditional on property
server.servlet.register-default-servlet, as it may mess up tomcat context
config and break the application startup (of executable jar that uses vrspace
as library). TODO: paths should be configurable
- Author:
- joe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory factory)
-
Constructor Details
-
EmbeddedTomcatCustomizer
public EmbeddedTomcatCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory factory) - Specified by:
customize
in interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory>
-