hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-121) new interface HeaderElementIterator
Date Fri, 05 Oct 2007 10:56:50 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532620

Oleg Kalnichevski commented on HTTPCORE-121:


I think the idea is to have a convenient means of iterating though header elements similar
to that Roland developed for headers

We already have a method that splits headers into an array of elements. (HeaderElement[] getElements())
I would be handy to have an iterator, which returns all header elements with the same name
present in the message. Consider the following example:

Set-Cookie: cookie1=value, cookie2=value, cookie3=value
Set-Cookie: cookie4=value, cookie5=value 
Set-Cookie: cookie6=value

An implementation of HeaderElementIterator interface that returns all 6 cookies sequentially
would certainly be quite handy.  



> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org

View raw message