Class MidPointTomcatServletWebServerFactory

java.lang.Object
org.springframework.boot.web.server.AbstractConfigurableWebServerFactory
org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
com.evolveum.midpoint.web.boot.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    MidPointTomcatServletWebServerFactory(String contextPath, com.evolveum.midpoint.repo.common.SystemObjectCache systemObjectCache)
     
  • Method Summary

    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
     
    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, addMimeMappings, 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, getPort, getServerHeader, getServerNameSslBundles, getShutdown, getSsl, getSslBundle, getSslBundles, setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory

    setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles

    Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistry

    addErrorPages
  • Constructor Details

    • MidPointTomcatServletWebServerFactory

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

    • 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)