Package org.apache.http
Interface HeaderIterator
- All Superinterfaces:
Iterator
- All Known Implementing Classes:
BasicHeaderIterator,BasicListHeaderIterator
public interface HeaderIterator extends Iterator
A type-safe iterator for
Header objects.- Version:
- $Revision: 581981 $
-
Method Summary
Modifier and Type Method Description booleanhasNext()Indicates whether there is another header in this iteration.HeadernextHeader()Obtains the next header from this iteration.
-
Method Details
-
hasNext
boolean hasNext()Indicates whether there is another header in this iteration.- Specified by:
hasNextin interfaceIterator- Returns:
trueif there is another header,falseotherwise- See Also:
Iterator.next()
-
nextHeader
Header nextHeader()Obtains the next header from this iteration. This method should only be called whilehasNextis true.- Returns:
- the next header in this iteration
-