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?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 3.0
    • None
    • 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

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: