Package org.apache.juneau.http.header
Class BasicHeaderIterator
java.lang.Object
org.apache.juneau.http.header.BasicHeaderIterator
- All Implemented Interfaces:
Iterator<Object>
,HeaderIterator
-
Constructor Summary
ConstructorDescriptionBasicHeaderIterator
(Header[] headers, String name, boolean caseSensitive) Creates a new header iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
BasicHeaderIterator
Creates a new header iterator.- Parameters:
headers
- An array of headers over which to iterate.name
- The name of the headers over which to iterate, ornull for all.caseSensitive
- Use case-sensitive matching for part name.
-
-
Method Details
-
hasNext
- Specified by:
hasNext
in interfaceHeaderIterator
- Specified by:
hasNext
in interfaceIterator<Object>
-
nextHeader
- Specified by:
nextHeader
in interfaceHeaderIterator
- Throws:
NoSuchElementException
-
next
- Specified by:
next
in interfaceIterator<Object>
- Throws:
NoSuchElementException
-
remove
Not supported.
-