MultiMap.caseInsensitiveMultiMap()
@Deprecated public final class CaseInsensitiveHeaders extends Object implements MultiMap
Constructor and Description |
---|
CaseInsensitiveHeaders()
Deprecated.
use
MultiMap.caseInsensitiveMultiMap() instead |
Modifier and Type | Method and Description |
---|---|
MultiMap |
add(CharSequence name,
CharSequence value)
Deprecated.
Like
MultiMap.add(String, String) but accepting CharSequence as parameters |
MultiMap |
add(CharSequence name,
Iterable<CharSequence> values)
Deprecated.
Like
MultiMap.add(String, Iterable) but accepting CharSequence as parameters |
MultiMap |
add(String name,
Iterable<String> values)
Deprecated.
Adds a new values under the specified name
|
MultiMap |
add(String name,
String strVal)
Deprecated.
Adds a new value with the specified name and value.
|
MultiMap |
addAll(Map<String,String> map)
Deprecated.
Adds all the entries from a Map to this
|
MultiMap |
addAll(MultiMap headers)
Deprecated.
Adds all the entries from another MultiMap to this one
|
MultiMap |
clear()
Deprecated.
Removes all
|
boolean |
contains(CharSequence name)
Deprecated.
Like
MultiMap.contains(String) but accepting a CharSequence as a parameter |
boolean |
contains(String name)
Deprecated.
Checks to see if there is a value with the specified name
|
void |
forEach(java.util.function.Consumer<? super Map.Entry<String,String>> action)
Deprecated.
|
String |
get(CharSequence name)
Deprecated.
|
String |
get(String name)
Deprecated.
Returns the value of with the specified name.
|
List<String> |
getAll(CharSequence name)
Deprecated.
Like
MultiMap.getAll(String) but accepting a CharSequence as a parameter |
List<String> |
getAll(String name)
Deprecated.
Returns the values with the specified name
|
boolean |
isEmpty()
Deprecated.
Return true if empty
|
Iterator<Map.Entry<String,String>> |
iterator()
Deprecated.
|
Set<String> |
names()
Deprecated.
Gets a immutable
Set of all names |
MultiMap |
remove(CharSequence name)
Deprecated.
Like
MultiMap.remove(String) but accepting CharSequence as parameters |
MultiMap |
remove(String name)
Deprecated.
Removes the value with the given name
|
MultiMap |
set(CharSequence name,
CharSequence value)
Deprecated.
Like
MultiMap.set(String, String) but accepting CharSequence as parameters |
MultiMap |
set(CharSequence name,
Iterable<CharSequence> values)
Deprecated.
Like
MultiMap.set(String, Iterable) but accepting CharSequence as parameters |
MultiMap |
set(String name,
Iterable<String> values)
Deprecated.
Sets values for the specified name.
|
MultiMap |
set(String name,
String strVal)
Deprecated.
Sets a
value under the specified name . |
MultiMap |
setAll(Map<String,String> headers)
Deprecated.
Cleans and set all values of the given instance
|
MultiMap |
setAll(MultiMap headers)
Deprecated.
Cleans this instance.
|
int |
size()
Deprecated.
Return the number of keys.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
caseInsensitiveMultiMap, contains, contains, entries
spliterator
@Deprecated public CaseInsensitiveHeaders()
MultiMap.caseInsensitiveMultiMap()
insteadpublic MultiMap setAll(MultiMap headers)
MultiMap
public MultiMap setAll(Map<String,String> headers)
MultiMap
public int size()
MultiMap
public MultiMap add(String name, String strVal)
MultiMap
public MultiMap add(String name, Iterable<String> values)
MultiMap
public MultiMap addAll(MultiMap headers)
MultiMap
public MultiMap addAll(Map<String,String> map)
MultiMap
public MultiMap remove(String name)
MultiMap
public MultiMap set(String name, String strVal)
MultiMap
value
under the specified name
.
If there is an existing header with the same name, it is removed. Setting a null
value removes the entry.
public MultiMap set(String name, Iterable<String> values)
MultiMap
public String get(String name)
MultiMap
public List<String> getAll(String name)
MultiMap
public void forEach(java.util.function.Consumer<? super Map.Entry<String,String>> action)
public boolean contains(String name)
MultiMap
public boolean isEmpty()
MultiMap
public Set<String> names()
MultiMap
Set
of all namespublic String get(CharSequence name)
public List<String> getAll(CharSequence name)
MultiMap
MultiMap.getAll(String)
but accepting a CharSequence
as a parameterpublic boolean contains(CharSequence name)
MultiMap
MultiMap.contains(String)
but accepting a CharSequence
as a parameterpublic MultiMap add(CharSequence name, CharSequence value)
MultiMap
MultiMap.add(String, String)
but accepting CharSequence
as parameterspublic MultiMap add(CharSequence name, Iterable<CharSequence> values)
MultiMap
MultiMap.add(String, Iterable)
but accepting CharSequence
as parameterspublic MultiMap set(CharSequence name, CharSequence value)
MultiMap
MultiMap.set(String, String)
but accepting CharSequence
as parameterspublic MultiMap set(CharSequence name, Iterable<CharSequence> values)
MultiMap
MultiMap.set(String, Iterable)
but accepting CharSequence
as parameterspublic MultiMap remove(CharSequence name)
MultiMap
MultiMap.remove(String)
but accepting CharSequence
as parametersCopyright © 2023 Eclipse. All rights reserved.