public class CachingWebClient extends Object
CachingWebClient
.
This client wraps a WebClient
and makes it cache aware by adding features to it:
The client honors the following cache headers:
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<CachingWebClient> |
__TYPE_ARG |
Constructor and Description |
---|
CachingWebClient(CachingWebClient delegate) |
CachingWebClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static WebClient |
create(WebClient webClient)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
CacheStore cacheStore)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
CacheStore cacheStore,
CachingWebClientOptions options)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
CachingWebClientOptions options)
Create a cache aware web client using the provided
WebClient . |
boolean |
equals(Object o) |
CachingWebClient |
getDelegate() |
int |
hashCode() |
static CachingWebClient |
newInstance(CachingWebClient arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<CachingWebClient> __TYPE_ARG
public CachingWebClient(CachingWebClient delegate)
public CachingWebClient(Object delegate)
public CachingWebClient getDelegate()
public static WebClient create(WebClient webClient)
WebClient
.webClient
- the web client instancepublic static WebClient create(WebClient webClient, CacheStore cacheStore)
WebClient
.webClient
- the web client instancecacheStore
- the cache adapterpublic static WebClient create(WebClient webClient, CachingWebClientOptions options)
WebClient
.webClient
- the web client instanceoptions
- the caching web client optionspublic static WebClient create(WebClient webClient, CacheStore cacheStore, CachingWebClientOptions options)
WebClient
.webClient
- the web client instancecacheStore
- the cache adapteroptions
- the caching web client optionspublic static CachingWebClient newInstance(CachingWebClient arg)
Copyright © 2024 Eclipse. All rights reserved.