diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-30 01:31:24 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-30 01:31:24 +0200 |
commit | 5b7db23aaacbb08a8242b1a77bd39bc19139526c (patch) | |
tree | b36f8ab16b89f1ae475db883f3f91b2a0a6837b8 /exampleSite/content/docs/jersey-configuration.md | |
parent | 7a6ab6d72496a07e42aa03242891b6d815b26b0d (diff) |
Add exampleSite
Diffstat (limited to 'exampleSite/content/docs/jersey-configuration.md')
-rw-r--r-- | exampleSite/content/docs/jersey-configuration.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/exampleSite/content/docs/jersey-configuration.md b/exampleSite/content/docs/jersey-configuration.md new file mode 100644 index 0000000..b5cd3c6 --- /dev/null +++ b/exampleSite/content/docs/jersey-configuration.md @@ -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); +```
\ No newline at end of file |