public class UrlEncodedFormEntity extends StringEntity
contentchunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE| Constructor and Description |
|---|
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
构造一个新的 UrlEncodedFormEntity与参数列表,默认编码为HTTP.DEFAULT_CONTENT_CHARSET
|
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters, Charset charset)
使用指定编码中的参数列表构造新的 UrlEncodedFormEntity 。
|
UrlEncodedFormEntity(List<? extends NameValuePair> parameters)
构造新的 UrlEncodedFormEntity与参数列表,默认编码为HTTP.DEFAULT_CONTENT_CHARSET
|
UrlEncodedFormEntity(List<? extends NameValuePair> parameters, String charset)
构造新的 UrlEncodedFormEntity与指定编码中的参数列表。
|
clone, getContent, getContentLength, isRepeatable, isStreaming, writeToconsumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toStringpublic UrlEncodedFormEntity(List<? extends NameValuePair> parameters, String charset) throws UnsupportedEncodingException
UrlEncodedFormEntity与指定编码中的参数列表。
parameters - 名称/值对列表
charset - 编码名称/值对编码
UnsupportedEncodingException - 如果不支持编码
public UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters, Charset charset)
UrlEncodedFormEntity与指定编码中的参数列表。
parameters - 名称/值对的可迭代集合
charset - 编码名称/值对编码
public UrlEncodedFormEntity(List<? extends NameValuePair> parameters) throws UnsupportedEncodingException
UrlEncodedFormEntity与参数列表,默认编码为HTTP.DEFAULT_CONTENT_CHARSET
parameters - 名称/值对列表
UnsupportedEncodingException - 如果不支持默认编码
public UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
UrlEncodedFormEntity与参数列表,默认编码为HTTP.DEFAULT_CONTENT_CHARSET
parameters - 名称/值对的可迭代收集
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.