Package org.apache.http.message
Class BasicHeaderElementIterator
- java.lang.Object
-
- org.apache.http.message.BasicHeaderElementIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>
,HeaderElementIterator
public class BasicHeaderElementIterator extends java.lang.Object implements HeaderElementIterator
Basic implementation of aHeaderElementIterator
.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description BasicHeaderElementIterator(HeaderIterator headerIterator)
BasicHeaderElementIterator(HeaderIterator headerIterator, HeaderValueParser parser)
Creates a new instance of BasicHeaderElementIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Indicates whether there is another header element in this iteration.java.lang.Object
next()
HeaderElement
nextElement()
Obtains the next header element from this iteration.void
remove()
-
-
-
Constructor Detail
-
BasicHeaderElementIterator
public BasicHeaderElementIterator(HeaderIterator headerIterator, HeaderValueParser parser)
Creates a new instance of BasicHeaderElementIterator
-
BasicHeaderElementIterator
public BasicHeaderElementIterator(HeaderIterator headerIterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:HeaderElementIterator
Indicates whether there is another header element in this iteration.- Specified by:
hasNext
in interfaceHeaderElementIterator
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Object>
- Returns:
true
if there is another header element,false
otherwise
-
nextElement
public HeaderElement nextElement() throws java.util.NoSuchElementException
Description copied from interface:HeaderElementIterator
Obtains the next header element from this iteration. This method should only be called whilehasNext
is true.- Specified by:
nextElement
in interfaceHeaderElementIterator
- Returns:
- the next header element in this iteration
- Throws:
java.util.NoSuchElementException
-
next
public final java.lang.Object next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Object>
- Throws:
java.util.NoSuchElementException
-
remove
public void remove() throws java.lang.UnsupportedOperationException
- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Object>
- Throws:
java.lang.UnsupportedOperationException
-
-