public abstract static class HeaderUtils.CookiesByNameIterator extends Object implements Iterator<HttpCookiePair>
Iterator of HttpCookiePair designed to iterate across multiple values of
HttpHeaderNames.COOKIE for a specific cookie-name.| Modifier | Constructor and Description |
|---|---|
protected |
CookiesByNameIterator(CharSequence cookiePairName)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
advanceCookieHeaderValue()
Advance the
cookieHeaderValue() to the next HttpHeaderNames.COOKIE header value. |
protected abstract CharSequence |
cookieHeaderValue()
Get the current value for
HttpHeaderNames.COOKIE. |
boolean |
hasNext() |
protected void |
initNext(CharSequence cookieHeaderValue)
Initialize the next
HttpCookiePair value for next(). |
HttpCookiePair |
next() |
protected CookiesByNameIterator(CharSequence cookiePairName)
cookiePairName - Each return value of next() will have HttpCookiePair.name() equivalent
to this value.public final boolean hasNext()
hasNext in interface Iterator<HttpCookiePair>public final HttpCookiePair next()
next in interface Iterator<HttpCookiePair>@Nullable protected abstract CharSequence cookieHeaderValue()
HttpHeaderNames.COOKIE. This value may change during iteration.HttpHeaderNames.COOKIE, or null if all have been iterated.protected abstract void advanceCookieHeaderValue()
cookieHeaderValue() to the next HttpHeaderNames.COOKIE header value.protected final void initNext(CharSequence cookieHeaderValue)
HttpCookiePair value for next().cookieHeaderValue - The initial value for HttpHeaderNames.COOKIE.