java.lang.Object | |
↳ | org.apache.http.message.BasicListHeaderIterator |
Implementation of a HeaderIterator
based on a List
.
For use by HeaderGroup
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
allHeaders | A list of headers to iterate over. | ||||||||||
currentIndex |
The position of the next header in allHeaders .
|
||||||||||
headerName | The header name to filter by. | ||||||||||
lastIndex | The position of the last returned header. |
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.
| |||||||||||
Removes the header that was returned last.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks whether a header is part of the iteration.
| |||||||||||
Determines the index of the next header.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
A list of headers to iterate over. Not all elements of this array are necessarily part of the iteration.
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.
The position of the last returned header. Negative if none has been returned so far.
Creates a new header iterator.
headers | a list 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 |
---|
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 |
---|