blob: b5cd3c68ea818e32dcf99963b99956a6e147fc28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
```
|