Package org.apache.hc.core5.http.message
Class BasicHeaderIterator
java.lang.Object
org.apache.hc.core5.http.message.BasicHeaderIterator
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBasicHeaderIterator(Header[] headers, String name) Creates a new header iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
BasicHeaderIterator
Creates a new header iterator.- Parameters:
headers- an array of headers over which to iteratename- the name of the headers over which to iterate, ornullfor any
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
Obtains the next header from this iteration.- Specified by:
nextin interfaceIterator<Header>- Returns:
- the next header in this iteration
- Throws:
NoSuchElementException- if there are no more headers
-
remove
Removing headers is not supported.- Specified by:
removein interfaceIterator<Header>- Throws:
UnsupportedOperationException- always
-