Object WebResourceCacheManager

  • All Implemented Interfaces:

    
    public class WebResourceCacheManager
    
                        

    WebResourceCacheManager is responsible for managing web resource caching and intercepting requests for cached resources.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • start

         final Unit start()

        Initializes all the dependent classes and Storage Layers before the call to intercept

      • shouldInterceptRequest

         final WebResourceResponse shouldInterceptRequest(String urlRaw, InMobiLogger logger)

        Intercepts a request for the specified URL and returns the cached resource if available.

        Parameters:
        urlRaw - The raw URL of the resource request.
        logger - Optional logger for logging debug messages.
        Returns:

        The cached web resource response, or null if not cached.