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 voidadvanceCookieHeaderValue()Advance thecookieHeaderValue()to the nextHttpHeaderNames.COOKIEheader value.protected abstract java.lang.CharSequencecookieHeaderValue()Get the current value forHttpHeaderNames.COOKIE.booleanhasNext()protected voidinitNext(java.lang.CharSequence cookieHeaderValue)Initialize the nextHttpCookiePairvalue fornext().HttpCookiePairnext()
-
-
-
Method Detail
-
hasNext
public final boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<HttpCookiePair>
-
next
public final HttpCookiePair next()
- Specified by:
nextin 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, ornullif all have been iterated.
-
advanceCookieHeaderValue
protected abstract void advanceCookieHeaderValue()
Advance thecookieHeaderValue()to the nextHttpHeaderNames.COOKIEheader value.
-
initNext
protected final void initNext(java.lang.CharSequence cookieHeaderValue)
Initialize the nextHttpCookiePairvalue fornext().- Parameters:
cookieHeaderValue- The initial value forHttpHeaderNames.COOKIE.
-
-