Interface ConfigurableJettyWebServerFactory
- All Superinterfaces:
- ConfigurableWebServerFactory, ErrorPageRegistry, WebServerFactory
- All Known Implementing Classes:
- JettyReactiveWebServerFactory, JettyServletWebServerFactory, JettyWebServerFactory
ConfigurableWebServerFactory for Jetty-specific features.- Since:
- 4.0.0
- Author:
- Brian Clozel, Moritz Halbritter
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddServerCustomizers(JettyServerCustomizer... customizers) AddJettyServerCustomizers that will be applied to theServerbefore it is started.voidsetAcceptors(int acceptors) Set the number of acceptor threads to use.voidsetMaxConnections(int maxConnections) Sets the maximum number of concurrent connections.voidsetSelectors(int selectors) Set the number of selector threads to use.voidsetThreadPool(@Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPoolthat should be used by theServer.voidsetUseForwardHeaders(boolean useForwardHeaders) Set if x-forward-* headers should be processed.Methods inherited from interface ConfigurableWebServerFactorysetAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundlesMethods inherited from interface ErrorPageRegistryaddErrorPages
- 
Method Details- 
setAcceptorsvoid setAcceptors(int acceptors) Set the number of acceptor threads to use.- Parameters:
- acceptors- the number of acceptor threads to use
 
- 
setThreadPoolvoid setThreadPool(@Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPoolthat should be used by theServer. If set tonull(default), theServercreates aThreadPoolimplicitly.- Parameters:
- threadPool- the ThreadPool to be used
 
- 
setSelectorsvoid setSelectors(int selectors) Set the number of selector threads to use.- Parameters:
- selectors- the number of selector threads to use
 
- 
setUseForwardHeadersvoid setUseForwardHeaders(boolean useForwardHeaders) Set if x-forward-* headers should be processed.- Parameters:
- useForwardHeaders- if x-forward headers should be used
 
- 
addServerCustomizersAddJettyServerCustomizers that will be applied to theServerbefore it is started.- Parameters:
- customizers- the customizers to add
 
- 
setMaxConnectionsvoid setMaxConnections(int maxConnections) Sets the maximum number of concurrent connections.- Parameters:
- maxConnections- the maximum number of concurrent connections
 
 
-