@Deprecated public final class NameValuePairs extends LinkedList<NameValuePair>
UrlEncodedFormEntity
class.
Instances of this method can be passed directly to the RestClient.doPost(Object, Object)
method or
RestCall.body(Object)
methods to perform URL-encoded form posts.
NameValuePairs params =
modCount
Constructor and Description |
---|
NameValuePairs()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
NameValuePairs |
append(NameValuePair pair)
Deprecated.
Appends the specified pair to the end of this list.
|
NameValuePairs |
append(String name,
Object value)
Deprecated.
Appends the specified name/value pair to the end of this list.
|
NameValuePairs |
append(String name,
Object value,
HttpPartSerializer serializer,
HttpPartSchema schema)
Deprecated.
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(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
name
- The pair name.value
- The pair value.public NameValuePairs append(String name, Object value, HttpPartSerializer serializer, HttpPartSchema schema)
The value is converted to UON notation using the UrlEncodingSerializer
defined on the client.
name
- The pair name.value
- The pair value.serializer
- The serializer to use for serializing the value to a string value.schema
- The schema object that defines the format of the output.
HttpPartSchema.DEFAULT
.
OpenApiSerializer
).Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.