public class HttpUtil
extends java.lang.Object
构造器和说明 |
---|
HttpUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
convertHeaderCharsetFromIso88591(java.util.Map<java.lang.String,java.lang.String> headers) |
static void |
convertHeaderCharsetToIso88591(java.util.Map<java.lang.String,java.lang.String> headers) |
static java.lang.String |
paramToQueryString(java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String charset)
Encodes request parameters to a URL query.
|
static java.lang.String |
urlEncode(java.lang.String value,
java.lang.String charset)
Encode a URL segment with special chars replaced.
|
public static java.lang.String urlEncode(java.lang.String value, java.lang.String charset) throws java.io.UnsupportedEncodingException
value
- charset
- java.io.UnsupportedEncodingException
public static java.lang.String paramToQueryString(java.util.Map<java.lang.String,java.lang.String> params, java.lang.String charset) throws java.io.UnsupportedEncodingException
params
- charset
- java.io.UnsupportedEncodingException
public static void convertHeaderCharsetFromIso88591(java.util.Map<java.lang.String,java.lang.String> headers)
public static void convertHeaderCharsetToIso88591(java.util.Map<java.lang.String,java.lang.String> headers)