Add exampleSite

This commit is contained in:
Alex Shpak
2018-09-30 01:31:24 +02:00
parent 7a6ab6d724
commit 5b7db23aaa
9 changed files with 286 additions and 18 deletions
@@ -0,0 +1,20 @@
## Jersey configuration
### Simple configuration
This will assume default configuration with no interceptor and Grizzly client
```java
resourceConfig.register(RxJerseyServerFeature.class);
resourceConfig.register(RxJerseyClientFeature.class);
```
### Detailed configuration
This configuration will add async request interceptor and override default client
```java
RxJerseyServerFeature rxJerseyServerFeature = new RxJerseyServerFeature()
.register(AuthRequestInterceptor.class);
RxJerseyClientFeature rxJerseyClientFeature = new RxJerseyClientFeature()
.register(client); // Should be non-blocking client implementation
resourceConfig.register(rxJerseyServerFeature);
resourceConfig.register(rxJerseyClientFeature);
```