public class HttpHeaderSiteKeyExtractor extends BaseSiteKeyExtractor
SiteKeyVerifier.verifyInHeaders(String, Map, Map)| Modifier and Type | Class and Description |
|---|---|
static class |
HttpHeaderSiteKeyExtractor.ResourceInfo |
static class |
HttpHeaderSiteKeyExtractor.ServerResponseProcessor |
RESOURCE_HOLD_MAX_TIME_MS, webViewWeakReference| Constructor and Description |
|---|
HttpHeaderSiteKeyExtractor(AdblockWebView webView) |
| Modifier and Type | Method and Description |
|---|---|
android.webkit.WebResourceResponse |
extract(android.webkit.WebResourceRequest request)
This method is called by the
AdblockWebView during
WebViewClient.shouldInterceptRequest(WebView, WebResourceRequest)
This method must perform custom HTTP request or return one of states from
AdblockWebView.WebResponseResult |
void |
setEnabled(boolean enabled) |
void |
startNewPage()
Notifies about starting of a new page
|
boolean |
waitForSitekeyCheck(java.lang.String url,
boolean isMainFrame)
Blocks the calling thread while checking the sitekey
|
getSiteKeysConfiguration, isEnabled, setSiteKeysConfigurationpublic HttpHeaderSiteKeyExtractor(AdblockWebView webView)
public android.webkit.WebResourceResponse extract(android.webkit.WebResourceRequest request)
SiteKeyExtractorAdblockWebView during
WebViewClient.shouldInterceptRequest(WebView, WebResourceRequest)
This method must perform custom HTTP request or return one of states from
AdblockWebView.WebResponseResultrequest - a request that might be used for understanding
additional options (e.g. is the request intended for the main frame)public void setEnabled(boolean enabled)
setEnabled in interface SiteKeyExtractorsetEnabled in class BaseSiteKeyExtractorpublic void startNewPage()
SiteKeyExtractorpublic boolean waitForSitekeyCheck(java.lang.String url,
boolean isMainFrame)
SiteKeyExtractorWill be removed later in a favor of setting internal WebViewClient for every SiteKeyExtractor
url - a request url which is held back by this callisMainFrame - a boolean indicating whether this is a main or a subframe request