1 package gov.nist.javax.sip.message; 2 3 import java.util.Iterator; 4 import java.util.List; 5 6 import javax.sip.header.ContentTypeHeader; 7 8 public interface MultipartMimeContent { 9 add(Content content)10 public abstract boolean add(Content content); 11 12 /** 13 * Return the Content type header to assign to the outgoing sip meassage. 14 * 15 * @return 16 */ getContentTypeHeader()17 public abstract ContentTypeHeader getContentTypeHeader(); 18 toString()19 public abstract String toString(); 20 21 /** 22 * Set the content by its type. 23 * 24 * @param content 25 */ addContent( Content content)26 public abstract void addContent( Content content); 27 28 /** 29 * Retrieve the list of Content that is part of this MultitypeMime content. 30 * 31 * @return - the content iterator. Returns an empty iterator if no content list present. 32 */ getContents()33 public Iterator<Content> getContents(); 34 35 /** 36 * Get the number of Content parts. 37 * 38 * @return - the content parts. 39 */ getContentCount()40 public int getContentCount(); 41 42 } 43