public interface ConfigurableJettyWebServerFactory extends ConfigurableWebServerFactory
ConfigurableWebServerFactory
for Jetty-specific features.JettyServletWebServerFactory
,
JettyReactiveWebServerFactory
Modifier and Type | Method and Description |
---|---|
void |
addServerCustomizers(JettyServerCustomizer... customizers)
Add
JettyServerCustomizer s that will be applied to the Server
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 the
ThreadPool that should be used by the Server . |
void |
setUseForwardHeaders(boolean useForwardHeaders)
Set if x-forward-* headers should be processed.
|
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslStoreProvider
addErrorPages
void setAcceptors(int acceptors)
acceptors
- the number of acceptor threads to usevoid setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
ThreadPool
that should be used by the Server
. If set to
null
(default), the Server
creates a ThreadPool
implicitly.threadPool
- the ThreadPool to be usedvoid setSelectors(int selectors)
selectors
- the number of selector threads to usevoid setUseForwardHeaders(boolean useForwardHeaders)
useForwardHeaders
- if x-forward headers should be usedvoid addServerCustomizers(JettyServerCustomizer... customizers)
JettyServerCustomizer
s that will be applied to the Server
before it is started.customizers
- the customizers to add