Package com.qiniu.util
Class UrlUtils
- java.lang.Object
-
- com.qiniu.util.UrlUtils
-
public class UrlUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALWAYS_NON_ENCODINGstatic java.lang.StringPLUS_NON_ENCODINGstatic java.lang.StringPLUS_NON_ENCODING2https://github.com/google/guava/blob/v28.0/guava/src/com/google/common/net/UrlEscapers.java
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcomposeUrlWithQueries(java.lang.String url, StringMap queries)static java.lang.StringurlEncode(java.lang.String s)static java.lang.StringurlEncode(java.lang.String s, java.lang.String nonEncoding)static java.lang.StringurlEncode(java.lang.String s, java.nio.charset.Charset enc)static java.lang.StringurlEncode(java.lang.String s, java.nio.charset.Charset enc, java.lang.String nonEncoding)
-
-
-
Field Detail
-
ALWAYS_NON_ENCODING
public static final java.lang.String ALWAYS_NON_ENCODING
- See Also:
- Constant Field Values
-
PLUS_NON_ENCODING
public static final java.lang.String PLUS_NON_ENCODING
- See Also:
- Constant Field Values
-
PLUS_NON_ENCODING2
public static final java.lang.String PLUS_NON_ENCODING2
https://github.com/google/guava/blob/v28.0/guava/src/com/google/common/net/UrlEscapers.java- See Also:
- Constant Field Values
-
-
Method Detail
-
composeUrlWithQueries
public static java.lang.String composeUrlWithQueries(java.lang.String url, StringMap queries)
-
urlEncode
public static java.lang.String urlEncode(java.lang.String s)
-
urlEncode
public static java.lang.String urlEncode(java.lang.String s, java.lang.String nonEncoding)
-
urlEncode
public static java.lang.String urlEncode(java.lang.String s, java.nio.charset.Charset enc)
-
urlEncode
public static java.lang.String urlEncode(java.lang.String s, java.nio.charset.Charset enc, java.lang.String nonEncoding)
-
-