com.aliyun.mns.common.utils
类 HttpUtil
java.lang.Object
com.aliyun.mns.common.utils.HttpUtil
public class HttpUtil
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpUtil
public HttpUtil()
urlEncode
public static String urlEncode(String value,
String charset)
throws UnsupportedEncodingException
- Encode a URL segment with special chars replaced.
- 参数:
value - charset -
- 返回:
-
- 抛出:
UnsupportedEncodingException
paramToQueryString
public static String paramToQueryString(Map<String,String> params,
String charset)
throws UnsupportedEncodingException
- Encodes request parameters to a URL query.
- 参数:
params - charset -
- 返回:
-
- 抛出:
UnsupportedEncodingException
convertHeaderCharsetFromIso88591
public static void convertHeaderCharsetFromIso88591(Map<String,String> headers)
convertHeaderCharsetToIso88591
public static void convertHeaderCharsetToIso88591(Map<String,String> headers)
Copyright © 2016. All Rights Reserved.