public final class

UrlInterceptRegistry

extends Object
java.lang.Object
   ↳ android.webkit.UrlInterceptRegistry

This class is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

Summary

Public Constructors
UrlInterceptRegistry()
Public Methods
synchronized static PluginData getPluginData(String url, Map<StringString> headers)
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
synchronized static CacheManager.CacheResult getSurrogate(String url, Map<StringString> headers)
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
synchronized static boolean registerHandler(UrlInterceptHandler handler)
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
synchronized static void setUrlInterceptDisabled(boolean disabled)
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
synchronized static boolean unregisterHandler(UrlInterceptHandler handler)
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
synchronized static boolean urlInterceptDisabled()
This method is deprecated. This class was intended to be used by Gears. Since Gears was deprecated, so is this class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UrlInterceptRegistry ()

Since: API Level 1

Public Methods

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

Since: API Level 3

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

Given an url, returns the PluginData of the first UrlInterceptHandler interested, or null if none are or if intercepts are disabled.

Returns
  • A PluginData instance containing surrogate content.

public static synchronized CacheManager.CacheResult getSurrogate (String url, Map<StringString> headers)

Since: API Level 1

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

Given an url, returns the CacheResult of the first UrlInterceptHandler interested, or null if none are.

Returns
  • A CacheResult containing surrogate content.

public static synchronized boolean registerHandler (UrlInterceptHandler handler)

Since: API Level 1

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

Register a new UrlInterceptHandler. This handler will be called before any that were previously registered.

Parameters
handler The new UrlInterceptHandler object
Returns
  • true if the handler was not previously registered.

public static synchronized void setUrlInterceptDisabled (boolean disabled)

Since: API Level 1

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

set the flag to control whether url intercept is enabled or disabled

Parameters
disabled true to disable the cache

public static synchronized boolean unregisterHandler (UrlInterceptHandler handler)

Since: API Level 1

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

Unregister a previously registered UrlInterceptHandler.

Parameters
handler A previously registered UrlInterceptHandler.
Returns
  • true if the handler was found and removed from the list.

public static synchronized boolean urlInterceptDisabled ()

Since: API Level 1

This method is deprecated.
This class was intended to be used by Gears. Since Gears was deprecated, so is this class.

get the state of the url intercept, enabled or disabled

Returns
  • return if it is disabled