public class HttpsEnforcementBundle extends Object implements io.dropwizard.ConfiguredBundle<HttpEnforcementConfiguration>
https:// protocol to the same location using the https:// protocol.
Usage:
Modify your application configuration class so that it implements HttpEnforcementConfiguration,
then add the bundle in your Application.initialize(Bootstrap) method:
@Override
public void initialize(final Bootstrap<MyConfiguration> bootstrap) {
bootstrap.addBundle(new HttpsEnforcementBundle());
}| Constructor and Description |
|---|
HttpsEnforcementBundle() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(HttpEnforcementConfiguration configuration,
io.dropwizard.setup.Environment environment) |
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize in interface io.dropwizard.ConfiguredBundle<HttpEnforcementConfiguration>public void run(HttpEnforcementConfiguration configuration, io.dropwizard.setup.Environment environment) throws Exception
run in interface io.dropwizard.ConfiguredBundle<HttpEnforcementConfiguration>ExceptionCopyright © 2018 Graham Crockford. All rights reserved.