java.lang.Object | |
↳ | org.apache.http.message.BasicHeaderIterator |
Basic implementation of a
HeaderIterator
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
allHeaders | An array of headers to iterate over. | |||||||||
|
currentIndex |
The position of the next header in
allHeaders
.
|
|||||||||
|
headerName | The header name to filter by. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new header iterator.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Indicates whether there is another header in this iteration.
|
||||||||||
|
Returns the next header.
|
||||||||||
|
Obtains the next header from this iteration.
|
||||||||||
|
Removing headers is not supported.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Checks whether a header is part of the iteration.
|
||||||||||
|
Determines the index of the next header.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
java.util.Iterator
|
|||||||||||
From interface
org.apache.http.HeaderIterator
|
An array of headers to iterate over. Not all elements of this array are necessarily part of the iteration. This array will never be modified by the iterator. Derived implementations are expected to adhere to this restriction.
The position of the next header in
allHeaders
.
Negative if the iteration is over.
The header name to filter by.
null
to iterate over all headers in the array.
Creates a new header iterator.
headers | an array of headers over which to iterate |
---|---|
name |
the name of the headers over which to iterate, or
null
for any
|
Indicates whether there is another header in this iteration.
true
if there is another header,
false
otherwise
Returns the next header.
Same as
nextHeader
, but not type-safe.
NoSuchElementException | if there are no more headers |
---|
Obtains the next header from this iteration.
NoSuchElementException | if there are no more headers |
---|
Removing headers is not supported.
UnsupportedOperationException | always |
---|
Checks whether a header is part of the iteration.
index | the index of the header to check |
---|
true
if the header should be part of the
iteration,
false
to skip
Determines the index of the next header.
from | one less than the index to consider first, -1 to search for the first header |
---|