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 MultipartMimeContent
public ContentTypeHeader getContentTypeHeader()
MultipartMimeContent
getContentTypeHeader
in interface MultipartMimeContent
public String toString()
toString
in interface MultipartMimeContent
toString
in class Object
public void createContentList(String body) throws ParseException
ParseException
public void addContent(Content content)
MultipartMimeContent
addContent
in interface MultipartMimeContent
public Iterator<Content> getContents()
MultipartMimeContent
getContents
in interface MultipartMimeContent
public int getContentCount()
MultipartMimeContent
getContentCount
in interface MultipartMimeContent
Copyright © 2014. All Rights Reserved.