OPENDJ-918 (CR-1723) - HTTP Connection Handler - Server cannot start with horked http-config.json
Protected the HTTP Connection Handler against a failing initialization: after two consecutive startup failures, the HTTP connection handler will be disabled, errors will be logged and alerts will be output.
HTTPConnectionHandler.java:
Added instance member enabled to decouple the enable/disable state from the config.
Implemented getAlerts() method.
In startHttpServer(), moved the try / catch block and the call to notify() to the run() method.
In run(), handle failing initialization.
In stopHttpServer(), added a null check in case of failed intitialization.
Extracted method cleanUpHttpServer().
ServerConstants.java:
Added alerts for HTTP connection handler.
protocol*.properties:
Modified the name of the LDAP specific properties to be more generic.
LDAPConnectionHandler.java
Consequence of the change to protocol.properties.