Package io.vertx.mutiny.ext.web.client
Class CachingWebClient
java.lang.Object
io.vertx.mutiny.ext.web.client.CachingWebClient
- All Implemented Interfaces:
MutinyDelegate
An asynchronous cache aware HTTP / HTTP/2 client called
CachingWebClient.
This client wraps a WebClient and makes it cache aware by adding features to it:
- Cache-Control header parsing
- Freshness checking
The client honors the following cache headers:
- Cache-Control with the following properties understood:
- public
- private
- no-cache
- no-store
- max-age
- s-maxage
- stale-if-error
- staile-while-revalidate
- must-revalidate
- Expires
- ETag
- Vary
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Craig Day
- See Also:
-
CachingWebClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate) Create a new instance ofCachingWebClientdelegating to the given (non-null) instance ofCachingWebClient.CachingWebClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic WebClientCreate a cache aware web client using the providedWebClient.static WebClientCreate a cache aware web client using the providedWebClient.static WebClientCreate a cache aware web client using the providedWebClient.static WebClientcreate(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientConfig options) Create a cache aware web client using the providedWebClient.static WebClientcreate(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientOptions options) Create a cache aware web client using the providedWebClient.booleanio.vertx.ext.web.client.CachingWebClientGet the delegate instance.inthashCode()static CachingWebClientnewInstance(io.vertx.ext.web.client.CachingWebClient delegate) Creates a new instance of theCachingWebClient.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CachingWebClient
public CachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate) Create a new instance ofCachingWebClientdelegating to the given (non-null) instance ofCachingWebClient. -
CachingWebClient
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.client.CachingWebClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
Create a cache aware web client using the providedWebClient.- Parameters:
webClient- the web client instance- Returns:
- the created web client
-
create
public static WebClient create(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore) Create a cache aware web client using the providedWebClient.- Parameters:
webClient- the web client instancecacheStore- the cache adapter- Returns:
- the created web client
-
create
public static WebClient create(WebClient webClient, io.vertx.ext.web.client.CachingWebClientOptions options) Create a cache aware web client using the providedWebClient.- Parameters:
webClient- the web client instanceoptions- the caching web client options- Returns:
- the created web client
-
create
public static WebClient create(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientOptions options) Create a cache aware web client using the providedWebClient.- Parameters:
webClient- the web client instancecacheStore- the cache adapteroptions- the caching web client options- Returns:
- the created web client
-
create
public static WebClient create(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientConfig options) Create a cache aware web client using the providedWebClient.- Parameters:
webClient- the web client instancecacheStore- the cache adapteroptions- the caching web client options- Returns:
- the created web client
-
newInstance
Creates a new instance of theCachingWebClient. -
hashCode
public int hashCode() -
equals
-
toString
-