Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-369

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: