JettyServletWebServerFactory
open class JettyServletWebServerFactory : AbstractServletWebServerFactory, ConfigurableJettyWebServerFactory, ResourceLoaderAware
ServletWebServerFactory that can be used to create a JettyWebServer. Can be initialized using Spring's ServletContextInitializers or Jetty Configurations.
Unless explicitly configured otherwise this factory will create servers that listen for HTTP requests on port 8080.
Author
Phillip Webb
Dave Syer
Andrey Hihlovskiy
Andy Wilkinson
Eddú Meléndez
Venil Noronha
Henri Kerola
Moritz Halbritter
Onur Kagan Ozcan
Since
2.0.0
See also
Constructors
Link copied to clipboard
constructor()
Create a new JettyServletWebServerFactory instance.
Create a new JettyServletWebServerFactory that listens for requests using the specified port.
Create a new JettyServletWebServerFactory with the specified context path and port.
Properties
Functions
Link copied to clipboard
Add Configurations that will be applied to the WebAppContext before the server is started.
Link copied to clipboard
Add CookieSameSiteSuppliers to those that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
Add ServletContextInitializers to those that should be applied in addition to getWebServer parameters.
Link copied to clipboard
Adds mime-type mappings.
Link copied to clipboard
Add JettyServerCustomizers that will be applied to the Server before it is started.
Link copied to clipboard
Adds web listeners that will be registered with the servlet container.
Link copied to clipboard
Returns a mutable collection of Jetty Configurations that will be applied to the WebAppContext before the server is created.
Link copied to clipboard
Returns the document root which will be used by the web context to serve static files.
Link copied to clipboard
Returns a mutable collection of Jetty JettyServerCustomizers that will be applied to the Server before it is created.
Link copied to clipboard
Gets a new fully configured but paused WebServer instance.
Link copied to clipboard
Flag to indicate that the default servlet should be registered.
Link copied to clipboard
Set the number of acceptor threads to use.
Link copied to clipboard
Sets Jetty Configurations that will be applied to the WebAppContext before the server is created.
Link copied to clipboard
Sets CookieSameSiteSuppliers that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
Sets the document root directory which will be used by the web context to serve static files.
Link copied to clipboard
Sets the error pages that will be used when handling exceptions.
Link copied to clipboard
Sets ServletContextInitializer that should be applied in addition to getWebServer parameters.
Link copied to clipboard
Sets the maximum number of concurrent connections.
Link copied to clipboard
Set if the DefaultServlet should be registered.
Link copied to clipboard
Link copied to clipboard
Set the number of selector threads to use.
Link copied to clipboard
Sets JettyServerCustomizers that will be applied to the Server before it is started.
Link copied to clipboard
Set if x-forward-* headers should be processed.