ConfigurableServletWebServerFactory

Functions

Link copied to clipboard
abstract fun addCookieSameSiteSuppliers(cookieSameSiteSuppliers: Array<CookieSameSiteSupplier>)
Add CookieSameSiteSuppliers to those that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
abstract fun addErrorPages(errorPages: Array<ErrorPage>)
Adds error pages that will be used when handling exceptions.
Link copied to clipboard
abstract fun addInitializers(initializers: Array<ServletContextInitializer>)
Add ServletContextInitializers to those that should be applied in addition to getWebServer parameters.
Link copied to clipboard
abstract fun addMimeMappings(mimeMappings: MimeMappings)
Adds mime-type mappings.
Link copied to clipboard
abstract fun addWebListeners(webListenerClassNames: Array<String>)
Adds web listeners that will be registered with the servlet container.
Link copied to clipboard
Gets a new fully configured but paused WebServer instance.
Link copied to clipboard
abstract fun setAddress(address: InetAddress)
Sets the specific network address that the server should bind to.
Link copied to clipboard
abstract fun setCompression(compression: Compression)
Sets the compression configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setContextPath(contextPath: String)
Sets the context path for the web server.
Link copied to clipboard
abstract fun setCookieSameSiteSuppliers(cookieSameSiteSuppliers: List<out CookieSameSiteSupplier>)
Sets CookieSameSiteSuppliers that should be used to obtain the SameSite attribute of any added cookie.
Link copied to clipboard
abstract fun setDisplayName(displayName: String)
Sets the display name of the application deployed in the web server.
Link copied to clipboard
abstract fun setDocumentRoot(documentRoot: File)
Sets the document root directory which will be used by the web context to serve static files.
Link copied to clipboard
abstract fun setErrorPages(errorPages: Set<out ErrorPage>)
Sets the error pages that will be used when handling exceptions.
Link copied to clipboard
abstract fun setHttp2(http2: Http2)
Sets the HTTP/2 configuration that will be applied to the server.
Link copied to clipboard
abstract fun setInitializers(initializers: List<out ServletContextInitializer>)
Sets ServletContextInitializer that should be applied in addition to getWebServer parameters.
Link copied to clipboard
abstract fun setInitParameters(initParameters: Map<String, String>)
Sets the init parameters that are applied to the container's ServletContext.
Link copied to clipboard
abstract fun setJsp(jsp: Jsp)
Sets the configuration that will be applied to the server's JSP servlet.
Link copied to clipboard
abstract fun setLocaleCharsetMappings(localeCharsetMappings: Map<Locale, Charset>)
Sets the Locale to Charset mappings.
Link copied to clipboard
abstract fun setMimeMappings(mimeMappings: MimeMappings)
Sets the mime-type mappings.
Link copied to clipboard
abstract fun setPort(port: Int)
Sets the port that the web server should listen on.
Link copied to clipboard
abstract fun setRegisterDefaultServlet(registerDefaultServlet: Boolean)
Set if the DefaultServlet should be registered.
Link copied to clipboard
abstract fun setServerHeader(serverHeader: String)
Sets the server header value.
Link copied to clipboard
abstract fun setSession(session: Session)
Sets the configuration that will be applied to the container's HTTP session support.
Link copied to clipboard
open fun setShutdown(shutdown: Shutdown)
Sets the shutdown configuration that will be applied to the server.
Link copied to clipboard
abstract fun setSsl(ssl: Ssl)
Sets the SSL configuration that will be applied to the server's default connector.
Link copied to clipboard
abstract fun setSslBundles(sslBundles: SslBundles)
Sets the SSL bundles that can be used to configure SSL connections.