Package org.springframework.http.support
Class HttpComponentsHeadersAdapter
java.lang.Object
org.springframework.http.support.HttpComponentsHeadersAdapter
- All Implemented Interfaces:
Map<String,,List<String>> org.springframework.util.MultiValueMap<String,String>
public final class HttpComponentsHeadersAdapter
extends Object
implements org.springframework.util.MultiValueMap<String,String>
MultiValueMap implementation for wrapping Apache HttpComponents
HttpClient headers.- Since:
- 6.1
- Author:
- Rossen Stoyanchev, Simon Baslé
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHttpComponentsHeadersAdapter(org.apache.hc.core5.http.HttpMessage message) Create a newHttpComponentsHeadersAdapterbased on the givenHttpMessage. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.springframework.util.MultiValueMap
addIfAbsent, asSingleValueMap
-
Constructor Details
-
HttpComponentsHeadersAdapter
public HttpComponentsHeadersAdapter(org.apache.hc.core5.http.HttpMessage message) Create a newHttpComponentsHeadersAdapterbased on the givenHttpMessage.
-
-
Method Details
-
getFirst
-
add
-
addAll
-
addAll
-
set
-
setAll
-
toSingleValueMap
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,List<String>>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,List<String>>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-