public abstract class MultipartMimeEntity extends MimeEntity
MimeEntity.NoCloseOutputStream
Modifier and Type | Field and Description |
---|---|
protected String |
boundary |
contentLength, contentTransferEncoding, isMainBody, RECALCULATE_CONTENT_LENGTH, UNKNOWN_CONTENT_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
MultipartMimeEntity() |
|
MultipartMimeEntity(org.apache.http.entity.ContentType contentType) |
|
MultipartMimeEntity(org.apache.http.entity.ContentType contentType,
boolean isMainBody) |
|
MultipartMimeEntity(org.apache.http.entity.ContentType contentType,
boolean isMainBody,
String boundary) |
Modifier and Type | Method and Description |
---|---|
void |
addPart(MimeEntity part) |
String |
getBoundary() |
long |
getContentLength() |
MimeEntity |
getPart(int index) |
int |
getPartCount() |
void |
writeTo(OutputStream outstream) |
addHeader, addHeader, containsHeader, getAllHeaders, getCharset, getContent, getContentEncodingValue, getContentTransferEncoding, getContentTransferEncodingValue, getContentTypeValue, getFirstHeader, getHeaders, getLastHeader, headerIterator, headerIterator, isMainBody, isRepeatable, isStreaming, removeAllHeaders, removeHeader, removeHeaders, setContentEncoding, setContentTransferEncoding, setContentTransferEncoding, setContentType, setContentType, setHeader, setHeader, setHeaders, setMainBody
protected String boundary
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType)
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType, boolean isMainBody)
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType, boolean isMainBody, String boundary)
protected MultipartMimeEntity()
public String getBoundary()
public void addPart(MimeEntity part)
public MimeEntity getPart(int index)
public int getPartCount()
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
getContentLength
in class MimeEntity
public void writeTo(OutputStream outstream) throws IOException
IOException
Apache Camel