Interface ConfigurableJettyWebServerFactory
- All Superinterfaces:
- ConfigurableWebServerFactory,- ErrorPageRegistry,- WebServerFactory
- All Known Implementing Classes:
- JettyReactiveWebServerFactory,- JettyServletWebServerFactory
ConfigurableWebServerFactory for Jetty-specific features.- Since:
- 2.0.0
- Author:
- Brian Clozel
- See Also:
- 
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.voidsetSelectors(int selectors) Set the number of selector threads to use.voidsetThreadPool(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 org.springframework.boot.web.server.ConfigurableWebServerFactorysetAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProviderMethods inherited from interface org.springframework.boot.web.server.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(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
 
 
-