Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (18 loc) · 851 Bytes

File metadata and controls

22 lines (18 loc) · 851 Bytes

Configuring Dropwizard

Once you have created a WavefrontJerseyFilter, register it in your dropwizard application as follows:

public class MyApplication extends Application<MyConfiguration>{
    @Override
    public void run(MyApplicationConfiguration configuration, Environment environment) {
        ...
        ...
        // Create the filter as specified in the link above
        WavefrontJerseyFilter wfJerseyFilter = buildJerseyFilter();

        // Register the filter with Dropwizard Jersey Environment
        environment.jersey().register(wfJerseyFilter);
        ...
        ...
    }
}

See the dropwizard documentation for further details on Jersey filters.