public class MultipartMimeContentImpl extends Object implements MultipartMimeContent
| Constructor and Description |
|---|
MultipartMimeContentImpl(ContentTypeHeader contentTypeHeader)
Creates a default content list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Content content) |
void |
addContent(Content content)
Set the content by its type.
|
void |
createContentList(String body)
unpack a multipart mime packet and set a list of content packets.
|
int |
getContentCount()
Get the number of Content parts.
|
Iterator<Content> |
getContents()
Retrieve the list of Content that is part of this MultitypeMime content.
|
ContentTypeHeader |
getContentTypeHeader()
Return the Content type header to assign to the outgoing sip meassage.
|
String |
toString() |
public static final String BOUNDARY
public MultipartMimeContentImpl(ContentTypeHeader contentTypeHeader)
public boolean add(Content content)
add in interface MultipartMimeContentpublic ContentTypeHeader getContentTypeHeader()
MultipartMimeContentgetContentTypeHeader in interface MultipartMimeContentpublic String toString()
toString in interface MultipartMimeContenttoString in class Objectpublic void createContentList(String body) throws ParseException
ParseExceptionpublic void addContent(Content content)
MultipartMimeContentaddContent in interface MultipartMimeContentpublic Iterator<Content> getContents()
MultipartMimeContentgetContents in interface MultipartMimeContentpublic int getContentCount()
MultipartMimeContentgetContentCount in interface MultipartMimeContentCopyright © 2014. All Rights Reserved.