Uses of Interface
org.apache.http.NameValuePair
| Package | Description |
|---|---|
| org.apache.http |
The core interfaces and classes of the HTTP components.
|
| org.apache.http.client.entity | |
| org.apache.http.client.utils |
Helpers and utility classes for HttpClient.
|
| org.apache.http.message |
A selection of HTTP
message
implementations. |
-
Uses of NameValuePair in org.apache.http
Methods in org.apache.http that return NameValuePair Modifier and Type Method Description NameValuePairHeaderElement. getParameter(int index)NameValuePairHeaderElement. getParameterByName(String name)NameValuePair[]HeaderElement. getParameters() -
Uses of NameValuePair in org.apache.http.client.entity
Constructor parameters in org.apache.http.client.entity with type arguments of type NameValuePair Constructor Description UrlEncodedFormEntity(List<? extends NameValuePair> parameters)Constructs a newUrlEncodedFormEntitywith the list of parameters with the default encoding ofHTTP.DEFAULT_CONTENT_CHARSETUrlEncodedFormEntity(List<? extends NameValuePair> parameters, String encoding)Constructs a newUrlEncodedFormEntitywith the list of parameters in the specified encoding. -
Uses of NameValuePair in org.apache.http.client.utils
Methods in org.apache.http.client.utils that return types with arguments of type NameValuePair Modifier and Type Method Description static List<NameValuePair>URLEncodedUtils. parse(URI uri, String encoding)Returns a list ofNameValuePairsas built from the URI's query portion.static List<NameValuePair>URLEncodedUtils. parse(HttpEntity entity)Returns a list ofNameValuePairsas parsed from anHttpEntity.Method parameters in org.apache.http.client.utils with type arguments of type NameValuePair Modifier and Type Method Description static StringURLEncodedUtils. format(List<? extends NameValuePair> parameters, String encoding)Returns a String that is suitable for use as anapplication/x-www-form-urlencodedlist of parameters in an HTTP PUT or HTTP POST.static voidURLEncodedUtils. parse(List<NameValuePair> parameters, Scanner scanner, String encoding)Adds all parameters within the Scanner to the list ofparameters, as encoded byencoding. -
Uses of NameValuePair in org.apache.http.message
Classes in org.apache.http.message that implement NameValuePair Modifier and Type Class Description classBasicNameValuePairA simple class encapsulating an attribute/value pair.Methods in org.apache.http.message that return NameValuePair Modifier and Type Method Description protected NameValuePairBasicHeaderValueParser. createNameValuePair(String name, String value)Creates a name-value pair.NameValuePairBasicHeaderElement. getParameter(int index)Obtains the parameter with the given index.NameValuePairBasicHeaderElement. getParameterByName(String name)Returns parameter with the given name, if found.NameValuePair[]BasicHeaderElement. getParameters()Get parameters, if any.static NameValuePairBasicHeaderValueParser. parseNameValuePair(String value, HeaderValueParser parser)Parses a name-value-pair with the given parser.NameValuePairBasicHeaderValueParser. parseNameValuePair(CharArrayBuffer buffer, ParserCursor cursor)NameValuePairBasicHeaderValueParser. parseNameValuePair(CharArrayBuffer buffer, ParserCursor cursor, char[] delimiters)NameValuePairHeaderValueParser. parseNameValuePair(CharArrayBuffer buffer, ParserCursor cursor)Parses a name=value specification, where the = and value are optional.static NameValuePair[]BasicHeaderValueParser. parseParameters(String value, HeaderValueParser parser)Parses parameters 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.Methods in org.apache.http.message with parameters of type NameValuePair Modifier and Type Method Description protected HeaderElementBasicHeaderValueParser. createHeaderElement(String name, String value, NameValuePair[] params)Creates a header element.protected intBasicHeaderValueFormatter. estimateNameValuePairLen(NameValuePair nvp)Estimates the length of a formatted name-value pair.protected intBasicHeaderValueFormatter. estimateParametersLen(NameValuePair[] nvps)Estimates the length of formatted parameters.static StringBasicHeaderValueFormatter. formatNameValuePair(NameValuePair nvp, boolean quote, HeaderValueFormatter formatter)Formats a name-value pair.CharArrayBufferBasicHeaderValueFormatter. formatNameValuePair(CharArrayBuffer buffer, NameValuePair nvp, boolean quote)CharArrayBufferHeaderValueFormatter. formatNameValuePair(CharArrayBuffer buffer, NameValuePair nvp, boolean quote)Formats one name-value pair, where the value is optional.static StringBasicHeaderValueFormatter. formatParameters(NameValuePair[] nvps, boolean quote, HeaderValueFormatter formatter)Formats a set of parameters.CharArrayBufferBasicHeaderValueFormatter. formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote)CharArrayBufferHeaderValueFormatter. formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote)Formats the parameters of a header element.Constructors in org.apache.http.message with parameters of type NameValuePair Constructor Description BasicHeaderElement(String name, String value, NameValuePair[] parameters)Constructor with name, value and parameters.