Package io.gravitee.gateway.api.http
Interface HttpHeaders
-
-
Method Summary
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getFirst
default String getFirst(CharSequence name)
Deprecated.Ensure backward compatibility, should be removed in the future
-
get
String get(CharSequence name)
-
getAll
List<String> getAll(CharSequence name)
-
containsKey
default boolean containsKey(CharSequence name)
Deprecated.Ensure backward compatibility, should be removed in the future
-
contains
boolean contains(CharSequence name)
-
add
HttpHeaders add(CharSequence name, CharSequence value)
-
add
HttpHeaders add(CharSequence name, Iterable<CharSequence> values)
-
set
HttpHeaders set(CharSequence name, CharSequence value)
-
set
HttpHeaders set(CharSequence name, Iterable<CharSequence> values)
-
remove
HttpHeaders remove(CharSequence name)
-
clear
void clear()
-
size
int size()
-
isEmpty
boolean isEmpty()
-
getOrDefault
default List<String> getOrDefault(CharSequence key, List<String> defaultValue)
-
create
static HttpHeaders create()
-
create
static HttpHeaders create(HttpHeaders headers)
-
containsAllKeys
default boolean containsAllKeys(Collection<String> names)
-
deeplyEquals
default boolean deeplyEquals(HttpHeaders other)
Indicates if this instance of HttpHeaders is deeply equal to another one. Comparison is made on size equality, key-set equality, then on equality of collection of values for each key.- Parameters:
other- the other HttpHeaders instance to compare with this one- Returns:
- true if instance are deeply equal, else returns false
-
-