ServletService
A Guava GenericIdleService that runs an embedded Jetty server to host servlets from a ServletGroup.
Each servlet in the group is registered under the root context path (/) at its path, given with or without a leading slash. The service manages the Jetty server lifecycle, starting it on startUp and stopping it on shutDown.
The servlets are served without authentication unless filters add it: every request, including one for a path no servlet serves, passes through the filters in list order first, and a filter can answer it itself, for example with a 401. Jetty initializes the filters when the server starts, and a filter that fails to initialize fails the start; it destroys them when the server stops. Starting a server that binds every interface (a host such as "0.0.0.0" or "::") logs a WARN.
Used by GenericService for serving administrative endpoints (ping, version, health check, thread dump).
Parameters
The HTTP port for the Jetty server.
The ServletGroup containing servlets to register.
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.
The servlet filters every request passes through, in order, before it reaches a servlet.
An optional initialization block invoked after the service listener is registered.