Class BasicListHeaderIterator

java.lang.Object
org.apache.http.message.BasicListHeaderIterator
All Implemented Interfaces:
Iterator, HeaderIterator

public class BasicListHeaderIterator
extends Object
implements HeaderIterator
Implementation of a HeaderIterator based on a List. For use by HeaderGroup.
Version:
$Revision: 584542 $
  • Field Details

    • allHeaders

      protected final List allHeaders
      A list of headers to iterate over. Not all elements of this array are necessarily part of the iteration.
    • currentIndex

      protected int currentIndex
      The position of the next header in allHeaders. Negative if the iteration is over.
    • lastIndex

      protected int lastIndex
      The position of the last returned header. Negative if none has been returned so far.
    • headerName

      protected String headerName
      The header name to filter by. null to iterate over all headers in the array.
  • Constructor Details

    • BasicListHeaderIterator

      public BasicListHeaderIterator​(List headers, String name)
      Creates a new header iterator.
      Parameters:
      headers - a list of headers over which to iterate
      name - the name of the headers over which to iterate, or null for any
  • Method Details