From 5535f8740060e3f237cc12124dd892565d6d2814 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 30 Oct 2018 15:56:42 +0100 Subject: Fill example site with Lorem Ipsum --- .../content/docs/dropwizard-configuration.md | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 exampleSite/content/docs/dropwizard-configuration.md (limited to 'exampleSite/content/docs/dropwizard-configuration.md') diff --git a/exampleSite/content/docs/dropwizard-configuration.md b/exampleSite/content/docs/dropwizard-configuration.md deleted file mode 100644 index 9bfdb70..0000000 --- a/exampleSite/content/docs/dropwizard-configuration.md +++ /dev/null @@ -1,35 +0,0 @@ -## Dropwizard configuration - -Use provided `RxJerseyBundle` -```java -@Override -public void initialize(Bootstrap bootstrap) { - bootstrap.addBundle(new RxJerseyBundle() - .setClientConfigurationProvider(config -> config.client) - .register(HeaderInterceptor.class) - ); -} -``` - -Alternatively you can directly configure and register Jersey feature -```java -public void run(RxJerseyConfiguration configuration, Environment environment) throws Exception { - JerseyEnvironment jersey = environment.jersey(); - - Client client = new JerseyClientBuilder(environment) - .using(configuration.client) - .using(new GrizzlyConnectorProvider()) - .buildRx("Client", RxObservableInvoker.class); - - RxJerseyServerFeature rxJerseyServerFeature = new RxJerseyServerFeature() - .register(HeaderInterceptor.class); - - RxJerseyClientFeature rxJerseyClientFeature = new RxJerseyClientFeature() - .register(client); - - jersey.register(rxJerseyServerFeature); - jersey.register(rxJerseyClientFeature); -} -``` - -#### [See example](https://github.com/alex-shpak/rx-jersey/tree/master/example) for more information \ No newline at end of file -- cgit v1.2.3