Package org.springframework.http.support
Class JettyHeadersAdapter
java.lang.Object
org.springframework.http.support.JettyHeadersAdapter
- All Implemented Interfaces:
Map<String,
,List<String>> org.springframework.util.MultiValueMap<String,
String>
public final class JettyHeadersAdapter
extends Object
implements org.springframework.util.MultiValueMap<String,String>
MultiValueMap
implementation for wrapping Jetty HTTP headers.- Since:
- 6.1
- Author:
- Rossen Stoyanchev, Juergen Hoeller, Sam Brannen
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJettyHeadersAdapter
(org.eclipse.jetty.http.HttpFields headers) Creates a newJettyHeadersAdapter
based on the givenHttpFields
instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface org.springframework.util.MultiValueMap
addIfAbsent
-
Constructor Details
-
JettyHeadersAdapter
public JettyHeadersAdapter(org.eclipse.jetty.http.HttpFields headers) Creates a newJettyHeadersAdapter
based on the givenHttpFields
instance.- Parameters:
headers
- theHttpFields
to base this adapter on
-
-
Method Details
-
getFirst
-
add
-
addAll
-
addAll
-
set
-
setAll
-
toSingleValueMap
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
List<String>>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
List<String>>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-