T
- The type of the sub-class, required for the builder methods such
as HttpFields.withAddTo(String, String)
.public abstract class AbstractHttpFields<T extends HttpFields<T>> extends HashMap<String,List<String>> implements HttpFields<T>
HeaderFields
type.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AbstractHttpFields()
Instantiates an empty instance.
|
AbstractHttpFields(Map<String,List<String>> aHttpFields)
Initializes the instance with the fields provided by the given
Map . |
Modifier and Type | Method and Description |
---|---|
protected static void |
copyHttpFields(Map<String,List<String>> aFromFields,
HttpFields<?> aToFields)
Copies the provided "from" fields into the provided "to" fields.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addTo, addTo, addTo, addTo, addTo, addTo, getFirst, getFirst, put, put, put, put, toField, toField, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withAddTo, withPut, withPut, withPut, withPut, withPut, withPut
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
protected static void copyHttpFields(Map<String,List<String>> aFromFields, HttpFields<?> aToFields)
aFromFields
- The fields from which to copy.aToFields
- The fields to which to copy.Copyright © 2018. All rights reserved.