NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.message
Class HeaderIterator

java.lang.Object
  extended by gov.nist.javax.sip.message.HeaderIterator
All Implemented Interfaces:
Iterator, ListIterator

public class HeaderIterator
extends Object
implements ListIterator

Iterator over lists of headers. Allows for uniform removal handling for singleton headers.

Since:
1.1
Version:
1.2 $Revision: 1.8 $ $Date: 2009/07/17 18:57:53 $
Author:
M. Ranganathan

Method Summary
 void add(Object header)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Object header)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Specified by:
next in interface ListIterator
Throws:
NoSuchElementException

previous

public Object previous()
                throws NoSuchElementException
Specified by:
previous in interface ListIterator
Throws:
NoSuchElementException

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator

set

public void set(Object header)
Specified by:
set in interface ListIterator

add

public void add(Object header)
Specified by:
add in interface ListIterator

remove

public void remove()
            throws IllegalStateException
Specified by:
remove in interface Iterator
Specified by:
remove in interface ListIterator
Throws:
IllegalStateException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Specified by:
hasNext in interface ListIterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.