You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/03/22 23:44:06 UTC

[jira] [Resolved] (NET-369) Article.addHeaderField() is currently write-only - there is no way to retrieve the headers - is it needed?

     [ https://issues.apache.org/jira/browse/NET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-369.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Removed

> Article.addHeaderField() is currently write-only - there is no way to retrieve the headers - is it needed?
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: NET-369
>                 URL: https://issues.apache.org/jira/browse/NET-369
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 3.0
>
>
> The method addHeaderField() stores a header name/value in a StringBuffer, but provides no means to return the contents of the buffer.
> Either the method and the field should be deleted, or there should be a getHeader() method - in which case the storage mechanism should probably be changed to a HashMap of some kind to make it easier to return individual header values.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira