Class HttpHeadersImpl
java.lang.Object
ru.tinkoff.kora.http.common.header.AbstractHttpHeaders
ru.tinkoff.kora.http.common.header.HttpHeadersImpl
- All Implemented Interfaces:
Iterable<Map.Entry<String,,List<String>>> HttpHeaders,MutableHttpHeaders
-
Constructor Summary
ConstructorsConstructorDescriptionHttpHeadersImpl(Map.Entry<String, List<String>>... entries) HttpHeadersImpl(HttpHeaders headers) -
Method Summary
Methods inherited from class ru.tinkoff.kora.http.common.header.AbstractHttpHeaders
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.http.common.header.HttpHeaders
isEmpty, toMutableMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface ru.tinkoff.kora.http.common.header.MutableHttpHeaders
set, set
-
Constructor Details
-
HttpHeadersImpl
-
HttpHeadersImpl
-
-
Method Details
-
getFirst
- Specified by:
getFirstin interfaceHttpHeaders- Returns:
- Русский: Возвращает первое найденное значение по имени переданного заголовка либо null если таковой заголовок отсутствует
English: Returns the first value found by the name of the passed header or null if no header is present
-
getAll
- Specified by:
getAllin interfaceHttpHeaders- Returns:
- Русский: Возвращает все значения по имени переданного заголовка либо null если таковые заголовки отсутствуют
English: Returns all values by name of the passed header or null if no such headers are present
-
has
- Specified by:
hasin interfaceHttpHeaders
-
set
- Specified by:
setin interfaceMutableHttpHeaders
-
add
- Specified by:
addin interfaceMutableHttpHeaders
-
add
- Specified by:
addin interfaceMutableHttpHeaders
-
set
- Specified by:
setin interfaceMutableHttpHeaders
-
remove
- Specified by:
removein interfaceMutableHttpHeaders
-
size
public int size()- Specified by:
sizein interfaceHttpHeaders
-
names
- Specified by:
namesin interfaceHttpHeaders- Returns:
- Русский: Возвращает все имена заголовков
English: Returns all header names
-
iterator
-