public class URIUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING
The default encoding for URI encode/decode: UTF-8.
|
Constructor and Description |
---|
URIUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
decode(String source)
URI解码
|
static String |
encode(String source)
URI编码
|
static boolean |
isUriArraySuffixOrPrefixWildcard(String[] array,
String uri)
URI前缀或后缀通配符匹配(只能同时存在一种通配)
|
public static final String DEFAULT_ENCODING
public static boolean isUriArraySuffixOrPrefixWildcard(String[] array, String uri)
array
- 包含通配符的URI的数组uri
- 实际的URIpublic static String encode(String source)
source
- 要编码的字符串Copyright © 2022 Pivotal Software, Inc.. All rights reserved.