com.aliyun.mns.common.utils
类 HttpUtil

java.lang.Object
  继承者 com.aliyun.mns.common.utils.HttpUtil

public class HttpUtil
extends Object


构造方法摘要
HttpUtil()
           
 
方法摘要
static void convertHeaderCharsetFromIso88591(Map<String,String> headers)
           
static void convertHeaderCharsetToIso88591(Map<String,String> headers)
           
static String paramToQueryString(Map<String,String> params, String charset)
          Encodes request parameters to a URL query.
static String urlEncode(String value, String charset)
          Encode a URL segment with special chars replaced.
 
从类 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.