UrlEncodedFormEntitypublic class UrlEncodedFormEntity extends StringEntity An entity composed of a list of url-encoded pairs.
This is typically useful while sending an HTTP POST request. |
Constructors Summary |
---|
public UrlEncodedFormEntity(List parameters, String encoding)Constructs a new {@link UrlEncodedFormEntity} with the list
of parameters in the specified encoding.
super(URLEncodedUtils.format(parameters, encoding),
encoding);
setContentType(URLEncodedUtils.CONTENT_TYPE);
| public UrlEncodedFormEntity(List parameters)Constructs a new {@link UrlEncodedFormEntity} with the list
of parameters with the default encoding of {@link HTTP#DEFAULT_CONTENT_CHARSET}
super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET),
HTTP.DEFAULT_CONTENT_CHARSET);
setContentType(URLEncodedUtils.CONTENT_TYPE);
|
|