Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » http » [javadoc | source]
org.apache.tomcat.util.http
class: NamesEnumerator [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.http.NamesEnumerator

All Implemented Interfaces:
    Enumeration

Enumerate the distinct header names. Each nextElement() is O(n) ( a comparation is done with all previous elements ). This is less frequesnt than add() - we want to keep add O(1).
Field Summary
 int pos     
 int size     
 String next     
 MimeHeaders headers     
Constructor:
 public NamesEnumerator(MimeHeaders headers) 
Method from org.apache.tomcat.util.http.NamesEnumerator Summary:
hasMoreElements,   nextElement
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.http.NamesEnumerator Detail:
 public boolean hasMoreElements() 
 public Object nextElement()