public class UrlEncodedFormEntity
extends org.apache.hc.core5.http.io.entity.StringEntity
Constructor and Description |
---|
UrlEncodedFormEntity(Iterable<? extends org.apache.hc.core5.http.NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED |
UrlEncodedFormEntity(Iterable<? extends org.apache.hc.core5.http.NameValuePair> parameters,
Charset charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
UrlEncodedFormEntity(List<? extends org.apache.hc.core5.http.NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED |
close, getContent, getContentLength, isRepeatable, isStreaming, writeTo
public UrlEncodedFormEntity(Iterable<? extends org.apache.hc.core5.http.NameValuePair> parameters, Charset charset)
UrlEncodedFormEntity
with the list
of parameters in the specified encoding.parameters
- iterable collection of name/value pairscharset
- encoding the name/value pairs be encoded withpublic UrlEncodedFormEntity(List<? extends org.apache.hc.core5.http.NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED
parameters
- list of name/value pairspublic UrlEncodedFormEntity(Iterable<? extends org.apache.hc.core5.http.NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED
parameters
- iterable collection of name/value pairsCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.