codahale/dropwizard — pull request #79 by cheddar (2012-04-13 00:54:50+00:00)
Title: Quick and Dirty patch to allow for enforced SSL

This is a patch that allows for configuration to enforce SSL on the main external connector. The use case is for servers that want all interactions to be over HTTPS and want to do HTTPS termination at the service layer. The external connector is either all SSL or it is not, it does not allow for serving some things over HTTPS and some things over normal HTTP.

This patch is also back-portable to 0.3.1.

More generally, I think that DropWizard might benefit from the ability to invert the configuration of the connectors. Perhaps introduce a Provider that can be instantiated by config but can also be overridden through some method on the Environment object. In general, having this mechanism allows clients of the library to work around potential limitations in the config understood by DropWizard (and thus saves them from wondering things like when a patch they submit will get introduced into the code base so that they do not have to deal with their own fork and deployment into maven, which is what I am now wondering ;) ).