public final class NameValuePairs extends LinkedList<org.apache.http.NameValuePair>
List<NameValuePair>
for the
UrlEncodedFormEntity
class.
Instances of this method can be passed directly to the RestClient.doPost(Object, Object)
method or
RestCall.input(Object)
methods to perform URL-encoded form posts.
NameValuePairs params =
modCount
Constructor and Description |
---|
NameValuePairs() |
Modifier and Type | Method and Description |
---|---|
NameValuePairs |
append(org.apache.http.NameValuePair pair)
Appends the specified pair to the end of this list.
|
NameValuePairs |
append(String name,
Object value)
Appends the specified name/value pair to the end of this list.
|
NameValuePairs |
append(String name,
Object value,
HttpPartSerializer partSerializer)
Appends the specified name/value pair to the end of this list.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public NameValuePairs()
public NameValuePairs append(org.apache.http.NameValuePair pair)
pair
- The pair to append to this list.public NameValuePairs append(String name, Object value)
The value is simply converted to a string using toString()
, or
name
- The pair name.value
- The pair value.public NameValuePairs append(String name, Object value, HttpPartSerializer partSerializer)
The value is converted to UON notation using the UrlEncodingSerializer
defined on the client.
name
- The pair name.value
- The pair value.partSerializer
- The serializer to use for converting values to simple strings.Copyright © 2018 Apache. All rights reserved.