public class UrlUtils extends Object
Constructor and Description |
---|
UrlUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
canonicalizeUrl(String url,
String refer)
canonicalizeUrl
Borrowed from Jsoup. |
static List<Request> |
convertToRequests(Collection<String> urls) |
static List<String> |
convertToUrls(Collection<Request> requests) |
static String |
encodeIllegalCharacterInUrl(String url)
Deprecated.
|
static String |
fixIllegalCharacterInUrl(String url) |
static String |
getCharset(String contentType) |
static String |
getDomain(String url) |
static String |
getHost(String url) |
static String |
removePort(String domain) |
static String |
removeProtocol(String url) |
public static String canonicalizeUrl(String url, String refer)
url
- urlrefer
- referpublic static String encodeIllegalCharacterInUrl(String url)
url
- urlpublic static List<Request> convertToRequests(Collection<String> urls)
public static List<String> convertToUrls(Collection<Request> requests)
Copyright © 2017. All rights reserved.