|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.util.HttpHeader.FieldIterator
public abstract class HttpHeader.FieldIterator
Abstract enumeration of fields.
Subtypes decide what type of token to return and how to represent it.
This class serves to remove doubts about whether we should and can
implement Iterator or Enumeration and
proves itself unnecessary ;-). But we can factor stuff out and
re-use it later.
Actually, it also removes the need to think about exceptions in subtypes.
| Constructor Summary | |
|---|---|
HttpHeader.FieldIterator()
|
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
|
boolean |
hasNext()
|
Object |
next()
Return the next element or an exception. |
Object |
nextElement()
|
abstract Object |
nextToken()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpHeader.FieldIterator()
| Method Detail |
|---|
public final boolean hasMoreElements()
hasMoreElements in interface EnumerationEnumeration.hasMoreElements()public final Object nextElement()
nextElement in interface EnumerationEnumeration.nextElement()public final boolean hasNext()
hasNext in interface IteratorIterator.hasNext(),
next()
public void remove()
throws UnsupportedOperationException
remove in interface IteratorUnsupportedOperationExceptionIterator.remove()public Object next()
next in interface Iterator
public abstract Object nextToken()
throws HttpHeader.HttpHeaderException
HttpHeader.HttpHeaderException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||