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

Oleg Kalnichevski commented on HTTPCORE-122:
--------------------------------------------

This is all true, but the use of CAB can still result in some minor benefits:
(1) The original header value can be GC-ed even if some of the individual 
tokens are still referenced. This will not be the case with tokens obtained 
with String#substring
(2) CAB provides convenience methods to strip away trailing and leading blanks

Anyways, feel free to go ahead and commit the patch as it.

Cheers

Oleg

> new interface TokenIterator
> ---------------------------
>
>                 Key: HTTPCORE-122
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-122
>             Project: HttpComponents Core
>          Issue Type: Sub-task
>          Components: HttpCore
>    Affects Versions: 4.0-alpha5
>            Reporter: Roland Weber
>            Assignee: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-beta1
>
>         Attachments: 2k7-11-30-token-iter.txt
>
>
> As discussed for HTTPCORE-112, a new interface and implementation for 
> iterating over String tokens in a header value would be useful.
> The implementation can be based on 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]

Reply via email to