Package io.vertx.mutiny.ext.web.client
Class CachingWebClient
- java.lang.Object
-
- io.vertx.mutiny.ext.web.client.CachingWebClient
-
public class CachingWebClient extends Object
An asynchronous cache aware HTTP / HTTP/2 client calledCachingWebClient.This client wraps a
WebClientand 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
originalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CachingWebClient>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description CachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate)CachingWebClient(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebClientcreate(WebClient webClient)static WebClientcreate(WebClient webClient, io.vertx.ext.web.client.CachingWebClientOptions options)static WebClientcreate(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore)static WebClientcreate(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientOptions options)booleanequals(Object o)io.vertx.ext.web.client.CachingWebClientgetDelegate()inthashCode()static CachingWebClientnewInstance(io.vertx.ext.web.client.CachingWebClient arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<CachingWebClient> __TYPE_ARG
-
-
Constructor Detail
-
CachingWebClient
public CachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate)
-
CachingWebClient
public CachingWebClient(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.client.CachingWebClient getDelegate()
-
create
public static WebClient create(WebClient webClient)
- 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)
- 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)
- 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)
- Parameters:
webClient- the web client instancecacheStore- the cache adapteroptions- the caching web client options- Returns:
- the created web client
-
newInstance
public static CachingWebClient newInstance(io.vertx.ext.web.client.CachingWebClient arg)
-
-