Class JettyHeadersAdapter
java.lang.Object
org.springframework.http.support.JettyHeadersAdapter
MultiValueMap implementation for wrapping Jetty HTTP headers.- Since:
- 6.1
- Author:
- Rossen Stoyanchev, Juergen Hoeller, Sam Brannen, Simon Baslé
- 
Nested Class Summary
- 
Constructor SummaryConstructorsConstructorDescriptionJettyHeadersAdapter(org.eclipse.jetty.http.HttpFields headers) Creates a newJettyHeadersAdapterbased on the givenHttpFieldsinstance.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd the given single value to the current list of values for the given key.voidAdd all the values of the given list to the current list of values for the given key.voidaddAll(MultiValueMap<String, String> values) Add all the values of the givenMultiValueMapto the current values.voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()Return the first value for the given key.booleanisEmpty()keySet()voidvoidSet the given single value under the given key.voidSet the given values under.intsize()Return aMapwith the first values contained in thisMultiValueMap.toString()values()Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Mapcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface MultiValueMapaddIfAbsent, asSingleValueMap
- 
Constructor Details- 
JettyHeadersAdapterpublic JettyHeadersAdapter(org.eclipse.jetty.http.HttpFields headers) Creates a newJettyHeadersAdapterbased on the givenHttpFieldsinstance.- Parameters:
- headers- the- HttpFieldsto base this adapter on
 
 
- 
- 
Method Details- 
getFirstDescription copied from interface:MultiValueMapReturn the first value for the given key.- Specified by:
- getFirstin interface- MultiValueMap<String,- String> 
- Parameters:
- key- the key
- Returns:
- the first value for the specified key, or nullif none
 
- 
addDescription copied from interface:MultiValueMapAdd the given single value to the current list of values for the given key.- Specified by:
- addin interface- MultiValueMap<String,- String> 
- Parameters:
- key- the key
- value- the value to be added
 
- 
addAllDescription copied from interface:MultiValueMapAdd all the values of the given list to the current list of values for the given key.- Specified by:
- addAllin interface- MultiValueMap<String,- String> 
- Parameters:
- key- they key
- values- the values to be added
 
- 
addAllDescription copied from interface:MultiValueMapAdd all the values of the givenMultiValueMapto the current values.- Specified by:
- addAllin interface- MultiValueMap<String,- String> 
- Parameters:
- values- the values to be added
 
- 
setDescription copied from interface:MultiValueMapSet the given single value under the given key.- Specified by:
- setin interface- MultiValueMap<String,- String> 
- Parameters:
- key- the key
- value- the value to set
 
- 
setAllDescription copied from interface:MultiValueMapSet the given values under.- Specified by:
- setAllin interface- MultiValueMap<String,- String> 
- Parameters:
- values- the values.
 
- 
toSingleValueMapDescription copied from interface:MultiValueMapReturn aMapwith the first values contained in thisMultiValueMap. The difference between this method andMultiValueMap.asSingleValueMap()is that this method returns a copy of the entries of this map, whereas the latter returns a view.- Specified by:
- toSingleValueMapin interface- MultiValueMap<String,- String> 
- Returns:
- a single value representation of this map
 
- 
size
- 
isEmpty
- 
containsKey
- 
containsValue
- 
get
- 
put
- 
remove
- 
putAll
- 
clear
- 
keySet
- 
values
- 
entrySet
- 
toString
 
-