Package io.servicetalk.http.api
Class HeaderUtils.CookiesIterator
- java.lang.Object
-
- io.servicetalk.http.api.HeaderUtils.CookiesIterator
-
- All Implemented Interfaces:
java.util.Iterator<HttpCookiePair>
- Enclosing class:
- HeaderUtils
public abstract static class HeaderUtils.CookiesIterator extends java.lang.Object implements java.util.Iterator<HttpCookiePair>
-
-
Constructor Summary
Constructors Constructor Description CookiesIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
advanceCookieHeaderValue()
Advance thecookieHeaderValue()
to the nextHttpHeaderNames.COOKIE
header value.protected abstract java.lang.CharSequence
cookieHeaderValue()
Get the current value forHttpHeaderNames.COOKIE
.boolean
hasNext()
protected void
initNext(java.lang.CharSequence cookieHeaderValue)
Initialize the nextHttpCookiePair
value fornext()
.HttpCookiePair
next()
-
-
-
Method Detail
-
hasNext
public final boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<HttpCookiePair>
-
next
public final HttpCookiePair next()
- Specified by:
next
in interfacejava.util.Iterator<HttpCookiePair>
-
cookieHeaderValue
@Nullable protected abstract java.lang.CharSequence cookieHeaderValue()
Get the current value forHttpHeaderNames.COOKIE
. This value may change during iteration.- Returns:
- the current value for
HttpHeaderNames.COOKIE
, ornull
if all have been iterated.
-
advanceCookieHeaderValue
protected abstract void advanceCookieHeaderValue()
Advance thecookieHeaderValue()
to the nextHttpHeaderNames.COOKIE
header value.
-
initNext
protected final void initNext(java.lang.CharSequence cookieHeaderValue)
Initialize the nextHttpCookiePair
value fornext()
.- Parameters:
cookieHeaderValue
- The initial value forHttpHeaderNames.COOKIE
.
-
-