public interface

UrlInterceptHandler

android.webkit.UrlInterceptHandler

Summary

Public Methods
abstract PluginData getPluginData(String url, Map<StringString> headers)
Given an URL, returns the PluginData which contains the surrogate response for the request, or null if the handler is not interested.
abstract CacheManager.CacheResult service(String url, Map<StringString> headers)
Given an URL, returns the CacheResult which contains the surrogate response for the request, or null if the handler is not interested.

Public Methods

public abstract PluginData getPluginData (String url, Map<StringString> headers)

Given an URL, returns the PluginData which contains the surrogate response for the request, or null if the handler is not interested.

Parameters
url URL string.
headers The headers associated with the request. May be null.
Returns
  • The PluginData containing the surrogate response.

public abstract CacheManager.CacheResult service (String url, Map<StringString> headers)

Given an URL, returns the CacheResult which contains the surrogate response for the request, or null if the handler is not interested.

Parameters
url URL string.
headers The headers associated with the request. May be null.
Returns
  • The CacheResult containing the surrogate response.