java.lang.Object | |
↳ | com.tencent.smtt.sdk.URLUtil |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
URLUtil() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String | composeSearchUrl(String inQuery, String template, String queryPlaceHolder) | ||||||||||
static byte[] | decode(byte[] url) | ||||||||||
final static String |
guessFileName(String url, String contentDisposition, String mimeType)
Guesses canonical filename that a download would have, using
the URL and contentDisposition.
| ||||||||||
static String |
guessUrl(String inUrl)
Cleans up (if possible) user-entered web addresses
| ||||||||||
static boolean | isAboutUrl(String url) | ||||||||||
static boolean | isAssetUrl(String url) | ||||||||||
static boolean | isContentUrl(String url) | ||||||||||
static boolean |
isCookielessProxyUrl(String url)
This method is deprecated.
Cookieless proxy is no longer supported.
| ||||||||||
static boolean | isDataUrl(String url) | ||||||||||
static boolean | isFileUrl(String url) | ||||||||||
static boolean | isHttpUrl(String url) | ||||||||||
static boolean | isHttpsUrl(String url) | ||||||||||
static boolean | isJavaScriptUrl(String url) | ||||||||||
static boolean | isNetworkUrl(String url) | ||||||||||
static boolean | isValidUrl(String url) | ||||||||||
static String |
stripAnchor(String url)
Strips the url of the anchor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
IllegalArgumentException |
---|
Guesses canonical filename that a download would have, using the URL and contentDisposition. File extension, if not defined, is added based on the mimetype
url | Url to the content |
---|---|
contentDisposition | Content-Disposition HTTP header or null |
mimeType | Mime-type of the content or null |
Cleans up (if possible) user-entered web addresses
This method is deprecated.
Cookieless proxy is no longer supported.
Strips the url of the anchor.