Package com.evolveum.midpoint.web.boot
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
-
-
Constructor Summary
Constructors Constructor Description MidPointTomcatServletWebServerFactory(String contextPath, com.evolveum.midpoint.repo.common.SystemObjectCache systemObjectCache)
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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 classorg.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
-
setBaseDirectory
public void setBaseDirectory(File baseDirectory)
- Specified by:
setBaseDirectory
in interfaceorg.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory
- Overrides:
setBaseDirectory
in classorg.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
-
setProtocol
public void setProtocol(String protocol)
- Overrides:
setProtocol
in classorg.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
-
setBackgroundProcessorDelay
public void setBackgroundProcessorDelay(int delay)
- Specified by:
setBackgroundProcessorDelay
in interfaceorg.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory
- Overrides:
setBackgroundProcessorDelay
in classorg.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 interfaceorg.springframework.boot.web.servlet.server.ServletWebServerFactory
- Overrides:
getWebServer
in classorg.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
-
postProcessContext
protected void postProcessContext(org.apache.catalina.Context context)
- Overrides:
postProcessContext
in classorg.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
-
setJvmRoute
public void setJvmRoute(String jvmRoute)
-
-