类 JettyEmbeddedServletContainerFactory

    • 方法详细资料

      • configureSsl

        protected void configureSsl​(org.eclipse.jetty.util.ssl.SslContextFactory factory,
                                    Ssl ssl)
        Configure the SSL connection.
        参数:
        factory - the Jetty SslContextFactory.
        ssl - the ssl details.
      • configureWebAppContext

        protected final void configureWebAppContext​(org.eclipse.jetty.webapp.WebAppContext context,
                                                    ServletContextInitializer... initializers)
        Configure the given Jetty WebAppContext for use.
        参数:
        context - the context to configure
        initializers - the set of initializers to apply
      • addDefaultServlet

        protected final void addDefaultServlet​(org.eclipse.jetty.webapp.WebAppContext context)
        Add Jetty's DefaultServlet to the given WebAppContext.
        参数:
        context - the jetty WebAppContext
      • addJspServlet

        protected final void addJspServlet​(org.eclipse.jetty.webapp.WebAppContext context)
        Add Jetty's JspServlet to the given WebAppContext.
        参数:
        context - the jetty WebAppContext
      • getWebAppContextConfigurations

        protected org.eclipse.jetty.webapp.Configuration[] getWebAppContextConfigurations​(org.eclipse.jetty.webapp.WebAppContext webAppContext,
                                                                                          ServletContextInitializer... initializers)
        Return the Jetty Configurations that should be applied to the server.
        参数:
        webAppContext - the Jetty WebAppContext
        initializers - the ServletContextInitializers to apply
        返回:
        configurations to apply
      • postProcessWebAppContext

        protected void postProcessWebAppContext​(org.eclipse.jetty.webapp.WebAppContext webAppContext)
        Post process the Jetty WebAppContext before it used with the Jetty Server. Subclasses can override this method to apply additional processing to the WebAppContext.
        参数:
        webAppContext - the Jetty WebAppContext
      • setResourceLoader

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

        public void setUseForwardHeaders​(boolean useForwardHeaders)
        Set if x-forward-* headers should be processed.
        参数:
        useForwardHeaders - if x-forward headers should be used
        从以下版本开始:
        1.3.0
      • setAcceptors

        public void setAcceptors​(int acceptors)
        Set the number of acceptor threads to use.
        参数:
        acceptors - the number of acceptor threads to use
        从以下版本开始:
        1.4.0
      • setSelectors

        public void setSelectors​(int selectors)
        Set the number of selector threads to use.
        参数:
        selectors - the number of selector threads to use
        从以下版本开始:
        1.4.0
      • setConfigurations

        public void setConfigurations​(Collection<? extends org.eclipse.jetty.webapp.Configuration> configurations)
        Sets Jetty Configurations that will be applied to the WebAppContext before the server is created. Calling this method will replace any existing configurations.
        参数:
        configurations - the Jetty configurations to apply
      • getConfigurations

        public Collection<org.eclipse.jetty.webapp.Configuration> getConfigurations()
        Returns a mutable collection of Jetty Configurations that will be applied to the WebAppContext before the server is created.
        返回:
        the Jetty Configurations
      • addConfigurations

        public void addConfigurations​(org.eclipse.jetty.webapp.Configuration... configurations)
        Add Configurations that will be applied to the WebAppContext before the server is started.
        参数:
        configurations - the configurations to add
      • getThreadPool

        public org.eclipse.jetty.util.thread.ThreadPool getThreadPool()
        Returns a Jetty ThreadPool that should be used by the Server.
        返回:
        a Jetty ThreadPool or null
      • setThreadPool

        public void setThreadPool​(org.eclipse.jetty.util.thread.ThreadPool threadPool)
        Set a Jetty ThreadPool that should be used by the Server. If set to null (default), the Server creates a ThreadPool implicitly.
        参数:
        threadPool - a Jetty ThreadPool to be used