类 TomcatEmbeddedServletContainerFactory

    • 方法详细资料

      • customizeConnector

        protected void customizeConnector​(org.apache.catalina.connector.Connector connector)
      • configureSsl

        protected void configureSsl​(org.apache.coyote.http11.AbstractHttp11JsseProtocol<?> protocol,
                                    Ssl ssl)
        Configure Tomcat's AbstractHttp11JsseProtocol for SSL.
        参数:
        protocol - the protocol
        ssl - the ssl details
      • configureContext

        protected void configureContext​(org.apache.catalina.Context context,
                                        ServletContextInitializer[] initializers)
        Configure the Tomcat Context.
        参数:
        context - the Tomcat context
        initializers - initializers to apply
      • postProcessContext

        protected void postProcessContext​(org.apache.catalina.Context context)
        Post process the Tomcat Context before it used with the Tomcat Server. Subclasses can override this method to apply additional processing to the Context.
        参数:
        context - the Tomcat Context
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        指定者:
        setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware
      • setBaseDirectory

        public void setBaseDirectory​(File baseDirectory)
        Set the Tomcat base directory. If not specified a temporary directory will be used.
        参数:
        baseDirectory - the tomcat base directory
      • setTldSkip

        @Deprecated
        public void setTldSkip​(String tldSkip)
        已过时。
        as of 1.5 in favor of setTldSkipPatterns(Collection)
        A comma-separated list of jars to ignore for TLD scanning. See Tomcat's catalina.properties for typical values. Defaults to a list drawn from that source.
        参数:
        tldSkip - the jars to skip when scanning for TLDs etc
      • getTldSkipPatterns

        public Set<StringgetTldSkipPatterns()
        Returns a mutable set of the patterns that match jars to ignore for TLD scanning.
        返回:
        the list of jars to ignore for TLD scanning
      • setTldSkipPatterns

        public void setTldSkipPatterns​(Collection<String> patterns)
        Set the patterns that match jars to ignore for TLD scanning. See Tomcat's catalina.properties for typical values. Defaults to a list drawn from that source.
        参数:
        patterns - the jar patterns to skip when scanning for TLDs etc
      • addTldSkipPatterns

        public void addTldSkipPatterns​(String... patterns)
        Add patterns that match jars to ignore for TLD scanning. See Tomcat's catalina.properties for typical values.
        参数:
        patterns - the additional jar patterns to skip when scanning for TLDs etc
      • setProtocol

        public void setProtocol​(String protocol)
        The Tomcat protocol to use when create the Connector.
        参数:
        protocol - the protocol
        另请参阅:
        Connector(String)
      • setEngineValves

        public void setEngineValves​(Collection<? extends org.apache.catalina.Valve> engineValves)
        Set Valves that should be applied to the Tomcat Engine. Calling this method will replace any existing valves.
        参数:
        engineValves - the valves to set
      • getEngineValves

        public Collection<org.apache.catalina.Valve> getEngineValves()
        Returns a mutable collection of the Valves that will be applied to the Tomcat Engine.
        返回:
        the engineValves the valves that will be applied
      • addEngineValves

        public void addEngineValves​(org.apache.catalina.Valve... engineValves)
        Add Valves that should be applied to the Tomcat Engine.
        参数:
        engineValves - the valves to add
      • setContextValves

        public void setContextValves​(Collection<? extends org.apache.catalina.Valve> contextValves)
        Set Valves that should be applied to the Tomcat Context. Calling this method will replace any existing valves.
        参数:
        contextValves - the valves to set
      • getContextValves

        public Collection<org.apache.catalina.Valve> getContextValves()
        Returns a mutable collection of the Valves that will be applied to the Tomcat Context.
        返回:
        the contextValves the valves that will be applied
        另请参阅:
        getEngineValves()
      • addContextValves

        public void addContextValves​(org.apache.catalina.Valve... contextValves)
        Add Valves that should be applied to the Tomcat Context.
        参数:
        contextValves - the valves to add
      • setContextLifecycleListeners

        public void setContextLifecycleListeners​(Collection<? extends org.apache.catalina.LifecycleListener> contextLifecycleListeners)
        Set LifecycleListeners that should be applied to the Tomcat Context . Calling this method will replace any existing listeners.
        参数:
        contextLifecycleListeners - the listeners to set
      • getContextLifecycleListeners

        public Collection<org.apache.catalina.LifecycleListener> getContextLifecycleListeners()
        Returns a mutable collection of the LifecycleListeners that will be applied to the Tomcat Context .
        返回:
        the contextLifecycleListeners the listeners that will be applied
      • addContextLifecycleListeners

        public void addContextLifecycleListeners​(org.apache.catalina.LifecycleListener... contextLifecycleListeners)
        Add LifecycleListeners that should be added to the Tomcat Context.
        参数:
        contextLifecycleListeners - the listeners to add
      • addAdditionalTomcatConnectors

        public void addAdditionalTomcatConnectors​(org.apache.catalina.connector.Connector... connectors)
        Add Connectors in addition to the default connector, e.g. for SSL or AJP
        参数:
        connectors - the connectors to add
      • getAdditionalTomcatConnectors

        public List<org.apache.catalina.connector.Connector> getAdditionalTomcatConnectors()
        Returns a mutable collection of the Connectors that will be added to the Tomcat.
        返回:
        the additionalTomcatConnectors
      • setUriEncoding

        public void setUriEncoding​(Charset uriEncoding)
        Set the character encoding to use for URL decoding. If not specified 'UTF-8' will be used.
        参数:
        uriEncoding - the uri encoding to set
      • getUriEncoding

        public Charset getUriEncoding()
        Returns the character encoding to use for URL decoding.
        返回:
        the URI encoding
      • setBackgroundProcessorDelay

        public void setBackgroundProcessorDelay​(int delay)
        Sets the background processor delay in seconds.
        参数:
        delay - the delay in seconds
        从以下版本开始:
        1.4.1