org.idoox.xmlrpc
Interface PartIterator


public interface PartIterator

Iterates through parts in xml protocol message

Since:
4.0
Component:
Core

Method Summary
 boolean hasNext()
          returns whether the message has next part
 MessagePart next()
          goes to a next part
 

Method Detail

hasNext

public boolean hasNext()
                throws MessageProcessingException
returns whether the message has next part

Returns:
true if the message has next part
Throws:
MessageProcessingException - if the message is malformed

next

public MessagePart next()
                 throws MessageProcessingException,
                        java.util.NoSuchElementException
goes to a next part

Returns:
the next part
Throws:
MessageProcessingException - if the message is malformed
java.util.NoSuchElementException - if there is no next part