public final class NameValuePairs extends LinkedList<org.apache.http.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() |
| 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 serializer,
HttpPartSchema schema)
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, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic 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
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–2019 The Apache Software Foundation. All rights reserved.