org.apache.wink.common.model.multipart
Class InMultiPart

java.lang.Object
  extended by org.apache.wink.common.model.multipart.InMultiPart
All Implemented Interfaces:
java.util.Iterator<InPart>

public class InMultiPart
extends java.lang.Object
implements java.util.Iterator<InPart>

This class is used to represent inbound MultiPart messages, it implements an Iterator to iterate over the message's parts. A typical usage of InMultiPart looks like this:


Field Summary
static java.lang.String SEP
           
 
Constructor Summary
InMultiPart(org.apache.wink.common.internal.providers.multipart.MultiPartParser mim)
           
 
Method Summary
 javax.ws.rs.ext.Providers getProviders()
           
 boolean hasNext()
          Returns true if the iteration has more elements.
 InPart next()
           
 void remove()
          Not implemented
 void setProviders(javax.ws.rs.ext.Providers providers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEP

public static final java.lang.String SEP
See Also:
Constant Field Values
Constructor Detail

InMultiPart

public InMultiPart(org.apache.wink.common.internal.providers.multipart.MultiPartParser mim)
Method Detail

getProviders

public javax.ws.rs.ext.Providers getProviders()

setProviders

public void setProviders(javax.ws.rs.ext.Providers providers)

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
NOTICE: calling the has next will cause the inputStream of the previous part to be invalid

Specified by:
hasNext in interface java.util.Iterator<InPart>
Returns:
true if the iterator has more elements.

next

public InPart next()
Specified by:
next in interface java.util.Iterator<InPart>

remove

public void remove()
Not implemented

Specified by:
remove in interface java.util.Iterator<InPart>


Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.