Class MidPointTomcatServletWebServerFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory, org.springframework.boot.web.server.ConfigurableWebServerFactory, org.springframework.boot.web.server.ErrorPageRegistry, org.springframework.boot.web.server.WebServerFactory, org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory, org.springframework.boot.web.servlet.server.ServletWebServerFactory, org.springframework.boot.web.servlet.WebListenerRegistry, org.springframework.context.ResourceLoaderAware

    public class MidPointTomcatServletWebServerFactory
    extends org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
    Custom tomcat factory that used to hack embedded Tomcat setup. There seem to be no cleaner way to get to actual configured Tomcat instance.
    Author:
    semancik
    • Field Summary

      • Fields inherited from class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory

        DEFAULT_PROTOCOL
      • Fields inherited from class org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.boot.web.embedded.tomcat.TomcatWebServer getTomcatWebServer​(org.apache.catalina.startup.Tomcat tomcat)  
      org.springframework.boot.web.server.WebServer getWebServer​(org.springframework.boot.web.servlet.ServletContextInitializer... initializers)  
      protected void postProcessContext​(org.apache.catalina.Context context)  
      void setBackgroundProcessorDelay​(int delay)  
      void setBaseDirectory​(File baseDirectory)  
      void setJvmRoute​(String jvmRoute)  
      void setProtocol​(String protocol)  
      • Methods inherited from class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory

        addAdditionalTomcatConnectors, addConnectorCustomizers, addContextCustomizers, addContextLifecycleListeners, addContextValves, addEngineValves, addProtocolHandlerCustomizers, addTldSkipPatterns, configureContext, customizeConnector, getAdditionalTomcatConnectors, getContextLifecycleListeners, getContextValves, getEngineValves, getTldSkipPatterns, getTomcatConnectorCustomizers, getTomcatContextCustomizers, getTomcatProtocolHandlerCustomizers, getUriEncoding, prepareContext, setContextLifecycleListeners, setContextValves, setDisableMBeanRegistry, setEngineValves, setResourceLoader, setTldSkipPatterns, setTomcatConnectorCustomizers, setTomcatContextCustomizers, setTomcatProtocolHandlerCustomizers, setUriEncoding
      • Methods inherited from class org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory

        addCookieSameSiteSuppliers, addInitializers, addWebListeners, getContextPath, getCookieSameSiteSuppliers, getDisplayName, getDocumentRoot, getInitParameters, getJsp, getLocaleCharsetMappings, getMimeMappings, getSession, getUrlsOfJarsWithMetaInfResources, getValidDocumentRoot, getValidSessionStoreDir, getValidSessionStoreDir, getWebListenerClassNames, isRegisterDefaultServlet, mergeInitializers, setContextPath, setCookieSameSiteSuppliers, setDisplayName, setDocumentRoot, setInitializers, setInitParameters, setJsp, setLocaleCharsetMappings, setMimeMappings, setRegisterDefaultServlet, setSession, shouldRegisterJspServlet
      • Methods inherited from class org.springframework.boot.web.server.AbstractConfigurableWebServerFactory

        addErrorPages, createTempDir, getAddress, getCompression, getErrorPages, getHttp2, getOrCreateSslStoreProvider, getPort, getServerHeader, getShutdown, getSsl, getSslStoreProvider, setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvider
      • Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory

        setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvider
      • Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistry

        addErrorPages
    • Constructor Detail

      • MidPointTomcatServletWebServerFactory

        public MidPointTomcatServletWebServerFactory​(String contextPath,
                                                     com.evolveum.midpoint.repo.common.SystemObjectCache systemObjectCache)
    • Method Detail

      • getTomcatWebServer

        protected org.springframework.boot.web.embedded.tomcat.TomcatWebServer getTomcatWebServer​(org.apache.catalina.startup.Tomcat tomcat)
        Overrides:
        getTomcatWebServer in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • setBaseDirectory

        public void setBaseDirectory​(File baseDirectory)
        Specified by:
        setBaseDirectory in interface org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory
        Overrides:
        setBaseDirectory in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • setProtocol

        public void setProtocol​(String protocol)
        Overrides:
        setProtocol in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • setBackgroundProcessorDelay

        public void setBackgroundProcessorDelay​(int delay)
        Specified by:
        setBackgroundProcessorDelay in interface org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory
        Overrides:
        setBackgroundProcessorDelay in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • getWebServer

        public org.springframework.boot.web.server.WebServer getWebServer​(org.springframework.boot.web.servlet.ServletContextInitializer... initializers)
        Specified by:
        getWebServer in interface org.springframework.boot.web.servlet.server.ServletWebServerFactory
        Overrides:
        getWebServer in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • postProcessContext

        protected void postProcessContext​(org.apache.catalina.Context context)
        Overrides:
        postProcessContext in class org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
      • setJvmRoute

        public void setJvmRoute​(String jvmRoute)