Package | Description |
---|---|
org.apache.http |
Core HTTP component APIs and primitives.
|
org.apache.http.client.entity |
Client specific HTTP entity implementations.
|
org.apache.http.client.methods |
Standard HTTP method implementations.
|
org.apache.http.client.utils |
Client utility classes.
|
org.apache.http.entity |
Core HTTP entity implementations.
|
org.apache.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
Modifier and Type | Method and Description |
---|---|
NameValuePair |
HeaderElement.getParameter(int index)
Returns parameter with the given index.
|
NameValuePair |
HeaderElement.getParameterByName(java.lang.String name)
Returns the first parameter with the given name.
|
NameValuePair[] |
HeaderElement.getParameters()
Returns an array of name / value pairs.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<NameValuePair> |
EntityBuilder.getParameters()
Returns entity content as a parameter list if set using
EntityBuilder.setParameters(java.util.List) or
EntityBuilder.setParameters(org.apache.http.NameValuePair...) methods. |
Modifier and Type | Method and Description |
---|---|
EntityBuilder |
EntityBuilder.setParameters(NameValuePair... parameters)
Sets entity content as a parameter list.
|
Modifier and Type | Method and Description |
---|---|
EntityBuilder |
EntityBuilder.setParameters(java.util.List<NameValuePair> parameters)
Sets entity content as a parameter list.
|
Constructor and Description |
---|
UrlEncodedFormEntity(java.lang.Iterable<? extends NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(java.lang.Iterable<? extends NameValuePair> parameters,
java.nio.charset.Charset charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
UrlEncodedFormEntity(java.util.List<? extends NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(java.util.List<? extends NameValuePair> parameters,
java.lang.String charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
Modifier and Type | Method and Description |
---|---|
java.util.List<NameValuePair> |
RequestBuilder.getParameters() |
Modifier and Type | Method and Description |
---|---|
RequestBuilder |
RequestBuilder.addParameter(NameValuePair nvp) |
RequestBuilder |
RequestBuilder.addParameters(NameValuePair... nvps) |
Modifier and Type | Method and Description |
---|---|
java.util.List<NameValuePair> |
URIBuilder.getQueryParams() |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(CharArrayBuffer buf,
java.nio.charset.Charset charset,
char... separators)
Returns a list of
NameValuePairs as parsed from the given string using
the given character encoding. |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(HttpEntity entity)
Returns a list of
NameValuePairs as parsed from an HttpEntity . |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(java.lang.String s,
java.nio.charset.Charset charset)
Returns a list of
NameValuePairs as parsed from the given string using the given character
encoding. |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(java.lang.String s,
java.nio.charset.Charset charset,
char... separators)
Returns a list of
NameValuePairs as parsed from the given string using the given character
encoding. |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(java.net.URI uri,
java.lang.String charset)
Returns a list of
NameValuePairs as built from the URI's query portion. |
Modifier and Type | Method and Description |
---|---|
URIBuilder |
URIBuilder.setParameters(NameValuePair... nvps)
Sets URI query parameters.
|
Modifier and Type | Method and Description |
---|---|
URIBuilder |
URIBuilder.addParameters(java.util.List<NameValuePair> nvps)
Adds URI query parameters.
|
static java.lang.String |
URLEncodedUtils.format(java.lang.Iterable<? extends NameValuePair> parameters,
char parameterSeparator,
java.nio.charset.Charset charset)
Returns a String that is suitable for use as an
application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST. |
static java.lang.String |
URLEncodedUtils.format(java.lang.Iterable<? extends NameValuePair> parameters,
java.nio.charset.Charset charset)
Returns a String that is suitable for use as an
application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST. |
static java.lang.String |
URLEncodedUtils.format(java.util.List<? extends NameValuePair> parameters,
char parameterSeparator,
java.lang.String charset)
Returns a String that is suitable for use as an
application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST. |
static java.lang.String |
URLEncodedUtils.format(java.util.List<? extends NameValuePair> parameters,
java.lang.String charset)
Returns a String that is suitable for use as an
application/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST. |
static void |
URLEncodedUtils.parse(java.util.List<NameValuePair> parameters,
java.util.Scanner scanner,
java.lang.String charset)
Deprecated.
|
static void |
URLEncodedUtils.parse(java.util.List<NameValuePair> parameters,
java.util.Scanner scanner,
java.lang.String parameterSepartorPattern,
java.lang.String charset)
|
URIBuilder |
URIBuilder.setParameters(java.util.List<NameValuePair> nvps)
Sets URI query parameters.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.create(java.lang.String mimeType,
NameValuePair... params)
Creates a new instance of
ContentType with the given parameters. |
ContentType |
ContentType.withParameters(NameValuePair... params)
Creates a new instance with this MIME type and the given parameters.
|
Constructor and Description |
---|
ContentType(java.lang.String mimeType,
java.nio.charset.Charset charset,
NameValuePair[] params) |
Modifier and Type | Class and Description |
---|---|
class |
BasicNameValuePair
Basic implementation of
NameValuePair . |
Modifier and Type | Method and Description |
---|---|
protected NameValuePair |
BasicHeaderValueParser.createNameValuePair(java.lang.String name,
java.lang.String value)
Creates a name-value pair.
|
NameValuePair |
BasicHeaderElement.getParameter(int index) |
NameValuePair |
BasicHeaderElement.getParameterByName(java.lang.String name) |
NameValuePair[] |
BasicHeaderElement.getParameters() |
NameValuePair |
BasicHeaderValueParser.parseNameValuePair(CharArrayBuffer buffer,
ParserCursor cursor) |
NameValuePair |
HeaderValueParser.parseNameValuePair(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a name=value specification, where the = and value are optional.
|
NameValuePair |
BasicHeaderValueParser.parseNameValuePair(CharArrayBuffer buffer,
ParserCursor cursor,
char[] delimiters)
Deprecated.
(4.4) use
TokenParser |
static NameValuePair |
BasicHeaderValueParser.parseNameValuePair(java.lang.String value,
HeaderValueParser parser)
Parses a name-value-pair with the given parser.
|
NameValuePair[] |
BasicHeaderValueParser.parseParameters(CharArrayBuffer buffer,
ParserCursor cursor) |
NameValuePair[] |
HeaderValueParser.parseParameters(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a list of name-value pairs.
|
static NameValuePair[] |
BasicHeaderValueParser.parseParameters(java.lang.String value,
HeaderValueParser parser)
Parses parameters with the given parser.
|
Modifier and Type | Method and Description |
---|---|
protected HeaderElement |
BasicHeaderValueParser.createHeaderElement(java.lang.String name,
java.lang.String value,
NameValuePair[] params)
Creates a header element.
|
protected int |
BasicHeaderValueFormatter.estimateNameValuePairLen(NameValuePair nvp)
Estimates the length of a formatted name-value pair.
|
protected int |
BasicHeaderValueFormatter.estimateParametersLen(NameValuePair[] nvps)
Estimates the length of formatted parameters.
|
CharArrayBuffer |
HeaderValueFormatter.formatNameValuePair(CharArrayBuffer buffer,
NameValuePair nvp,
boolean quote)
Formats one name-value pair, where the value is optional.
|
CharArrayBuffer |
BasicHeaderValueFormatter.formatNameValuePair(CharArrayBuffer charBuffer,
NameValuePair nvp,
boolean quote) |
static java.lang.String |
BasicHeaderValueFormatter.formatNameValuePair(NameValuePair nvp,
boolean quote,
HeaderValueFormatter formatter)
Formats a name-value pair.
|
CharArrayBuffer |
HeaderValueFormatter.formatParameters(CharArrayBuffer buffer,
NameValuePair[] nvps,
boolean quote)
Formats the parameters of a header element.
|
CharArrayBuffer |
BasicHeaderValueFormatter.formatParameters(CharArrayBuffer charBuffer,
NameValuePair[] nvps,
boolean quote) |
static java.lang.String |
BasicHeaderValueFormatter.formatParameters(NameValuePair[] nvps,
boolean quote,
HeaderValueFormatter formatter)
Formats a set of parameters.
|
Constructor and Description |
---|
BasicHeaderElement(java.lang.String name,
java.lang.String value,
NameValuePair[] parameters)
Constructor with name, value and parameters.
|