public class HeadersContentTypeDetector extends java.lang.Object implements ContentTypeDetector
It has a limited functionality and can detect only
two types of content:
- FilterEngine.ContentType#XMLHTTPREQUEST and
- FilterEngine.ContentType#SUBDOCUMENT
Should be used in OrderedContentTypeDetector
| Constructor and Description |
|---|
HeadersContentTypeDetector() |
| Modifier and Type | Method and Description |
|---|---|
org.adblockplus.libadblockplus.FilterEngine.ContentType |
detect(android.webkit.WebResourceRequest request)
Detects ContentType for given URL and headers
|
public org.adblockplus.libadblockplus.FilterEngine.ContentType detect(android.webkit.WebResourceRequest request)
ContentTypeDetectordetect in interface ContentTypeDetectorrequest - WebResourceRequest that contains all required
info HTTP headers of incoming request including url and headers