static class HttpServer.HttpHeaderMap
extends java.util.LinkedHashMap
addHeader(java.lang.String, java.lang.String), not HashMap.put(K, V),
method.
This implementation should be used when a header is being constructed
from an uncontrolled source of (key,value) pairs.
If you are adding headers yourself and know that you won't duplicate
keys, then a normal Map implementation will do.| Constructor and Description |
|---|
HttpHeaderMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(java.lang.String key,
java.lang.String value)
Adds a header value to this map.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic void addHeader(java.lang.String key,
java.lang.String value)
key - header namevalue - header value