package com.l7tech.policy.assertion.ext.message.knob;

import com.l7tech.policy.assertion.ext.message.CustomContentType;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.NoSuchElementException;

public interface CustomPartsKnob extends CustomMessageKnob, Iterable<CustomPartsKnob.Part> {
   @Override
   Iterator<CustomPartsKnob.Part> iterator() throws NoSuchElementException;

   interface Part {
      CustomContentType getContentType();

      InputStream getInputStream() throws IOException;
   }
}
