[
https://issues.apache.org/jira/browse/HTTPCORE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532871
]
Roland Weber commented on HTTPCORE-121:
---------------------------------------
Yes, that was my idea...
interface ElementIterator extends Iterator {
boolean hasNext();
HeaderElement nextElement();
}
class BasicElementIterator implements ElementIterator {
BasicElementIterator(HeaderIterator) {...}
...
}
and HttpCookie could use it as follows:
ElementIterator it = new
BasicElementIterator(response.headerIterator("Set-Cookie"));
cheers,
Roland
> new interface HeaderElementIterator
> -----------------------------------
>
> Key: HTTPCORE-121
> URL: https://issues.apache.org/jira/browse/HTTPCORE-121
> Project: HttpComponents Core
> Issue Type: Sub-task
> Components: HttpCore
> Affects Versions: 4.0-alpha5
> Reporter: Roland Weber
> Priority: Minor
>
> As discussed for HTTPCORE-112, an interface and implementation for iterating
> over header elements would be useful.
> The implementation can be put on top of the HeaderIterator introduced with
> HTTPCORE-120.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]