Class CachingWebClient


  • public class CachingWebClient
    extends Object
    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 using Vert.x codegen.

    • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 instance
        cacheStore - 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 instance
        options - 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 instance
        cacheStore - the cache adapter
        options - the caching web client options
        Returns:
        the created web client
      • newInstance

        public static CachingWebClient newInstance​(io.vertx.ext.web.client.CachingWebClient arg)