Top Description Methods
org.apache.http

public Interface HeaderIterator

extends Iterator<Object>
Known Direct Implementers
org.apache.http.message.BasicHeaderIterator, org.apache.http.message.BasicListHeaderIterator
Imports
java.util.Iterator

A type-safe iterator for Header objects.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there is another header, false otherwise
hasNext
()

Redeclares java.util.Iterator.hasNext.

Indicates whether there is another header in this iteration.
public Header

Returns:

the next header in this iteration
nextHeader
()

Obtains the next header from this iteration.

Inherited from java.util.Iterator:
forEachRemainingnextremove

Method Detail

hasNextback to summary
public boolean hasNext()

Redeclares java.util.Iterator.hasNext.

Indicates whether there is another header in this iteration.

Returns:boolean

true if there is another header, false otherwise

Annotations
@Override
nextHeaderback to summary
public Header nextHeader()

Obtains the next header from this iteration. This method should only be called while hasNext is true.

Returns:Header

the next header in this iteration