Package org.springframework.http.support
Class Netty5HeadersAdapter
java.lang.Object
org.springframework.http.support.Netty5HeadersAdapter
@Deprecated(since="6.2.18",
forRemoval=true)
public final class Netty5HeadersAdapter
extends Object
implements MultiValueMap<String,String>
Deprecated, for removal: This API element is subject to removal in a future version.
MultiValueMap implementation for wrapping Netty HTTP headers.- Since:
- 6.1 deprecated as of 6.2.18 with no replacement
- Author:
- Violeta Georgieva, Simon Baslé
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNetty5HeadersAdapter(io.netty5.handler.codec.http.headers.HttpHeaders headers) Deprecated, for removal: This API element is subject to removal in a future version.Create a newNetty5HeadersAdapterbased on the givenHttpHeaders. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Add the given single value to the current list of values for the given key.voidDeprecated, for removal: This API element is subject to removal in a future version.Add all the values of the given list to the current list of values for the given key.voidaddAll(MultiValueMap<String, String> values) Deprecated, for removal: This API element is subject to removal in a future version.Add all the values of the givenMultiValueMapto the current values.voidclear()Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsKey(Object key) Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsValue(Object value) Deprecated, for removal: This API element is subject to removal in a future version.entrySet()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return the first value for the given key.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.keySet()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the given single value under the given key.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the given values under.intsize()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return aMapwith the first values contained in thisMultiValueMap.toString()Deprecated, for removal: This API element is subject to removal in a future version.values()Deprecated, for removal: This API element is subject to removal in a future version.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
-
Netty5HeadersAdapter
public Netty5HeadersAdapter(io.netty5.handler.codec.http.headers.HttpHeaders headers) Deprecated, for removal: This API element is subject to removal in a future version.Create a newNetty5HeadersAdapterbased on the givenHttpHeaders.
-
-
Method Details
-
getFirst
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapReturn the first value for the given key.- Specified by:
getFirstin interfaceMultiValueMap<String,String> - Parameters:
key- the key- Returns:
- the first value for the specified key, or
nullif none
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapAdd the given single value to the current list of values for the given key.- Specified by:
addin interfaceMultiValueMap<String,String> - Parameters:
key- the keyvalue- the value to be added
-
addAll
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapAdd all the values of the given list to the current list of values for the given key.- Specified by:
addAllin interfaceMultiValueMap<String,String> - Parameters:
key- they keyvalues- the values to be added
-
addAll
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapAdd all the values of the givenMultiValueMapto the current values.- Specified by:
addAllin interfaceMultiValueMap<String,String> - Parameters:
values- the values to be added
-
set
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapSet the given single value under the given key.- Specified by:
setin interfaceMultiValueMap<String,String> - Parameters:
key- the keyvalue- the value to set
-
setAll
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MultiValueMapSet the given values under.- Specified by:
setAllin interfaceMultiValueMap<String,String> - Parameters:
values- the values.
-
toSingleValueMap
Deprecated, for removal: This API element is subject to removal in a future version.Description 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 interfaceMultiValueMap<String,String> - Returns:
- a single value representation of this map
-
size
public int size()Deprecated, for removal: This API element is subject to removal in a future version. -
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version. -
containsKey
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsKeyin interfaceMap<String,List<String>>
-
containsValue
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsValuein interfaceMap<String,List<String>>
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
put
Deprecated, for removal: This API element is subject to removal in a future version. -
remove
Deprecated, for removal: This API element is subject to removal in a future version. -
putAll
Deprecated, for removal: This API element is subject to removal in a future version. -
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version. -
keySet
Deprecated, for removal: This API element is subject to removal in a future version. -
values
Deprecated, for removal: This API element is subject to removal in a future version. -
entrySet
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-