Class UrlFileExtensionTypeDetector
java.lang.Object
org.adblockplus.libadblockplus.android.webview.content_type.UrlFileExtensionTypeDetector
- All Implemented Interfaces:
ContentTypeDetector
public class UrlFileExtensionTypeDetector extends java.lang.Object implements ContentTypeDetector
-
Constructor Summary
Constructors Constructor Description UrlFileExtensionTypeDetector() -
Method Summary
Modifier and Type Method Description org.adblockplus.libadblockplus.FilterEngine.ContentTypedetect(android.webkit.WebResourceRequest request)Detects ContentType for given URL and headersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UrlFileExtensionTypeDetector
public UrlFileExtensionTypeDetector()
-
-
Method Details
-
detect
public org.adblockplus.libadblockplus.FilterEngine.ContentType detect(android.webkit.WebResourceRequest request)Description copied from interface:ContentTypeDetectorDetects ContentType for given URL and headers- Specified by:
detectin interfaceContentTypeDetector- Parameters:
request- WebResourceRequest that contains all required info HTTP headers of incoming request including url and headers- Returns:
- ContentType or `null` if not detected
-