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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Dmitri Blinov (Jira)
Article.addHeader() 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 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

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

Dmitri Blinov (Jira)

     [ 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 | Threaded
Open this post in threaded view
|

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

Dmitri Blinov (Jira)
In reply to this post by Dmitri Blinov (Jira)

     [ 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