Class BasicHeaderElementIterator

    • 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 interface HeaderElementIterator
        Specified by:
        hasNext in interface java.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 while hasNext is true.
        Specified by:
        nextElement in interface HeaderElementIterator
        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 interface java.util.Iterator<java.lang.Object>
        Throws:
        java.util.NoSuchElementException
      • remove

        public void remove()
                    throws java.lang.UnsupportedOperationException
        Specified by:
        remove in interface java.util.Iterator<java.lang.Object>
        Throws:
        java.lang.UnsupportedOperationException