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 Summary
Modifier and TypeMethodDescriptionvoid
addServerCustomizers
(JettyServerCustomizer... customizers) AddJettyServerCustomizer
s that will be applied to theServer
before it is started.void
setAcceptors
(int acceptors) Set the number of acceptor threads to use.void
setSelectors
(int selectors) Set the number of selector threads to use.void
setThreadPool
(org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPool
that should be used by theServer
.void
setUseForwardHeaders
(boolean useForwardHeaders) Set if x-forward-* headers should be processed.Methods inherited from interface org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles, setSslStoreProvider
Methods inherited from interface org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
-
Method Details
-
setAcceptors
void setAcceptors(int acceptors) Set the number of acceptor threads to use.- Parameters:
acceptors
- the number of acceptor threads to use
-
setThreadPool
void setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPool
that should be used by theServer
. If set tonull
(default), theServer
creates aThreadPool
implicitly.- Parameters:
threadPool
- the ThreadPool to be used
-
setSelectors
void setSelectors(int selectors) Set the number of selector threads to use.- Parameters:
selectors
- the number of selector threads to use
-
setUseForwardHeaders
void setUseForwardHeaders(boolean useForwardHeaders) Set if x-forward-* headers should be processed.- Parameters:
useForwardHeaders
- if x-forward headers should be used
-
addServerCustomizers
AddJettyServerCustomizer
s that will be applied to theServer
before it is started.- Parameters:
customizers
- the customizers to add
-