Provides a fully configured instance of an http server,
ready to use with Guice (via
com.google.inject.servlet.GuiceFilter)
Features:
- HTTP/HTTPS
- Basic Auth
- Request logging
- JMX
Configuration options are provided via
HttpServerConfig
To enable JMX, an
MBeanServer must be bound elsewhere
To enable Basic Auth, a
LoginService must be bound elsewhere
To enable HTTPS, HttpServerConfig.isHttpsEnabled() must return true and HttpServerConfig.getKeystorePath() and
HttpServerConfig.getKeystorePassword() must return the path to the keystore containing the ssl cert & the password to the
keystore, respectively. The https port is specified via HttpServerConfig.getHttpsPort()