Package org.apache.hc.core5.http.message
Class BasicHeaderIterator
- java.lang.Object
-
- org.apache.hc.core5.http.message.BasicHeaderIterator
-
-
Constructor Summary
Constructors Constructor Description BasicHeaderIterator(Header[] headers, java.lang.String name)Creates a new header iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Headernext()Obtains the next header from this iteration.voidremove()Removing headers is not supported.
-
-
-
Constructor Detail
-
BasicHeaderIterator
public BasicHeaderIterator(Header[] headers, java.lang.String name)
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 Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<Header>
-
next
public Header next() throws java.util.NoSuchElementException
Obtains the next header from this iteration.- Specified by:
nextin interfacejava.util.Iterator<Header>- Returns:
- the next header in this iteration
- Throws:
java.util.NoSuchElementException- if there are no more headers
-
remove
public void remove() throws java.lang.UnsupportedOperationExceptionRemoving headers is not supported.- Specified by:
removein interfacejava.util.Iterator<Header>- Throws:
java.lang.UnsupportedOperationException- always
-
-