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

Sebb updated NET-369:
---------------------

    Description: 
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.

  was:
The method addHeader() 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.

        Summary: Article.addHeaderField() is currently write-only - there is no 
way to retrieve the headers - is it needed?  (was: Article.addHeader() is 
currently write-only - there is no way to retrieve the headers - is it needed?)

> 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
>
> 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

Reply via email to