Class POSTBuilder
- All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>, SequencedMap<String, String>
A helper class to build POST bodies.
- Since:
- 3.4
- Version:
- 9.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIfPresent(String key, String value) Adds a value to the Map provided it is not null or empty.byte[]Builds a POST body of name/value pairs.Methods inherited from class LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
POSTBuilder
POSTBuilder()
-
-
Method Details
-
addIfPresent
-
getBody
Builds a POST body of name/value pairs.- Parameters:
c- the Charset to encode with- Returns:
- the POST body
-