MultipartMimeContent.java revision 600c7a4bbc7348167293eac928192e695b4ad5ba
1package gov.nist.javax.sip.message;
2
3import java.util.Iterator;
4import java.util.List;
5
6import javax.sip.header.ContentTypeHeader;
7
8public interface MultipartMimeContent {
9
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     */
17    public abstract ContentTypeHeader getContentTypeHeader();
18
19    public abstract String toString();
20
21    /**
22     * Set the content by its type.
23     *
24     * @param content
25     */
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     */
33    public Iterator<Content> getContents();
34
35    /**
36     * Get the number of Content parts.
37     *
38     * @return - the content parts.
39     */
40    public int getContentCount();
41
42}
43