Package io.gravitee.gateway.api.http
Interface HttpHeaders
- All Known Implementing Classes:
DefaultHttpHeaders
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptionadd(CharSequence name, CharSequence value) add(CharSequence name, Iterable<CharSequence> values) voidclear()booleancontains(CharSequence name) default booleandefault booleancontainsAllKeys(Collection<String> names) default booleancontainsKey(CharSequence name) Deprecated.default booleancontainsKey(String name) static HttpHeaderscreate()static HttpHeaderscreate(HttpHeaders headers) default booleandeeplyEquals(HttpHeaders other) Indicates if this instance of HttpHeaders is deeply equal to another one.get(CharSequence name) getAll(CharSequence name) default StringgetFirst(CharSequence name) Deprecated.getOrDefault(CharSequence key, List<String> defaultValue) booleanisEmpty()names()remove(CharSequence name) set(CharSequence name, CharSequence value) set(CharSequence name, Iterable<CharSequence> values) intsize()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
create
-
create
-
getFirst
Deprecated.Ensure backward compatibility, should be removed in the future -
get
-
getAll
-
containsKey
Deprecated.Ensure backward compatibility, should be removed in the future -
containsKey
-
contains
-
contains
-
names
-
add
-
add
-
set
-
set
-
remove
-
clear
void clear() -
size
int size() -
isEmpty
boolean isEmpty() -
getOrDefault
-
toSingleValueMap
-
toListValuesMap
-
containsAllKeys
-
deeplyEquals
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
-