ServletService
constructor(port: Int, servletGroup: ServletGroup, host: String? = null, filters: List<Filter> = [], initBlock: ServletService.() -> Unit = {})
Parameters
port
The HTTP port for the Jetty server.
servletGroup
The ServletGroup containing servlets to register.
host
The interface to bind to. The default, null, binds 127.0.0.1, so only local clients can connect; use "0.0.0.0" to accept connections on every interface.
filters
The servlet filters every request passes through, in order, before it reaches a servlet.
initBlock
An optional initialization block invoked after the service listener is registered.