Class Netty5HeadersAdapter

java.lang.Object
org.springframework.http.support.Netty5HeadersAdapter
All Implemented Interfaces:
Map<String,List<String>>, MultiValueMap<String,String>

@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

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K extends Object,V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 new Netty5HeadersAdapter based on the given HttpHeaders.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String key, String value)
    Deprecated, 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.
    void
    addAll(String key, List<? extends String> values)
    Deprecated, 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.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Add all the values of the given MultiValueMap to the current values.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    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.
     
    get(Object key)
    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.
    boolean
    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.
     
    put(String key, List<String> value)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    putAll(Map<? extends String,? extends List<String>> map)
    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.
     
    void
    set(String key, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the given single value under the given key.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the given values under.
    int
    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 a Map with the first values contained in this MultiValueMap.
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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 new Netty5HeadersAdapter based on the given HttpHeaders.
  • Method Details

    • getFirst

      @Nullable public String getFirst(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Return the first value for the given key.
      Specified by:
      getFirst in interface MultiValueMap<String,String>
      Parameters:
      key - the key
      Returns:
      the first value for the specified key, or null if none
    • add

      public void add(String key, @Nullable String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Add the given single value to the current list of values for the given key.
      Specified by:
      add in interface MultiValueMap<String,String>
      Parameters:
      key - the key
      value - the value to be added
    • addAll

      public void addAll(String key, List<? extends String> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Add all the values of the given list to the current list of values for the given key.
      Specified by:
      addAll in interface MultiValueMap<String,String>
      Parameters:
      key - they key
      values - the values to be added
    • addAll

      public void addAll(MultiValueMap<String,String> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Add all the values of the given MultiValueMap to the current values.
      Specified by:
      addAll in interface MultiValueMap<String,String>
      Parameters:
      values - the values to be added
    • set

      public void set(String key, @Nullable String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Set the given single value under the given key.
      Specified by:
      set in interface MultiValueMap<String,String>
      Parameters:
      key - the key
      value - the value to set
    • setAll

      public void setAll(Map<String,String> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Set the given values under.
      Specified by:
      setAll in interface MultiValueMap<String,String>
      Parameters:
      values - the values.
    • toSingleValueMap

      public Map<String,String> toSingleValueMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MultiValueMap
      Return a Map with the first values contained in this MultiValueMap. The difference between this method and MultiValueMap.asSingleValueMap() is that this method returns a copy of the entries of this map, whereas the latter returns a view.
      Specified by:
      toSingleValueMap in interface MultiValueMap<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.
      Specified by:
      size in interface Map<String,List<String>>
    • isEmpty

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isEmpty in interface Map<String,List<String>>
    • containsKey

      public boolean containsKey(Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      containsKey in interface Map<String,List<String>>
    • containsValue

      public boolean containsValue(Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      containsValue in interface Map<String,List<String>>
    • get

      @Nullable public List<String> get(Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      get in interface Map<String,List<String>>
    • put

      @Nullable public List<String> put(String key, @Nullable List<String> value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      put in interface Map<String,List<String>>
    • remove

      @Nullable public List<String> remove(Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface Map<String,List<String>>
    • putAll

      public void putAll(Map<? extends String,? extends List<String>> map)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      putAll in interface Map<String,List<String>>
    • clear

      public void clear()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      clear in interface Map<String,List<String>>
    • keySet

      public Set<String> keySet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      keySet in interface Map<String,List<String>>
    • values

      public Collection<List<String>> values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      values in interface Map<String,List<String>>
    • entrySet

      public Set<Map.Entry<String,List<String>>> entrySet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      entrySet in interface Map<String,List<String>>
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object