public final class UriUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsAbfsUrl(String string)
Checks whether a string includes abfs url.
|
static String |
encodedUrlStr(String url) |
static String |
extractAccountNameFromHostName(String hostName)
Extracts the account name from the host name.
|
static String |
generateUniqueTestPath()
Generate unique test path for multiple user tests.
|
static String |
getMaskedUrl(URL url) |
static String |
maskUrlQueryParameters(List<org.apache.http.NameValuePair> keyValueList,
Set<String> queryParamsForFullMask,
Set<String> queryParamsForPartialMask) |
static String |
maskUrlQueryParameters(List<org.apache.http.NameValuePair> keyValueList,
Set<String> queryParamsForFullMask,
Set<String> queryParamsForPartialMask,
int queryLen)
Generic function to mask a set of query parameters partially/fully and
return the resultant query string
|
public static boolean containsAbfsUrl(String string)
string - the string to check.public static String extractAccountNameFromHostName(String hostName)
hostName - the fully-qualified domain name of the storage service
endpoint (e.g. {account}.dfs.core.windows.net.public static String generateUniqueTestPath()
public static String maskUrlQueryParameters(List<org.apache.http.NameValuePair> keyValueList, Set<String> queryParamsForFullMask, Set<String> queryParamsForPartialMask)
public static String maskUrlQueryParameters(List<org.apache.http.NameValuePair> keyValueList, Set<String> queryParamsForFullMask, Set<String> queryParamsForPartialMask, int queryLen)
keyValueList - List of NameValuePair instances for query keys/valuesqueryParamsForFullMask - values for these params will appear as "XXXX"queryParamsForPartialMask - values will be masked with 'X', except for
the last PARTIAL_MASK_VISIBLE_LEN charactersqueryLen - to initialize StringBuilder for the masked queryCopyright © 2008–2023 Apache Software Foundation. All rights reserved.