Class MultipartMimeEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
org.apache.camel.component.as2.api.entity.MultipartMimeEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Direct Known Subclasses:
MultipartReportEntity,MultipartSignedEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.component.as2.api.entity.MimeEntity
MimeEntity.NoCloseOutputStream -
Field Summary
FieldsFields inherited from class org.apache.camel.component.as2.api.entity.MimeEntity
contentLength, contentTransferEncoding, isMainBody, RECALCULATE_CONTENT_LENGTH, UNKNOWN_CONTENT_LENGTHFields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultipartMimeEntity(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) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(MimeEntity part) longgetPart(int index) intvoidwriteTo(OutputStream outstream) Methods inherited from class org.apache.camel.component.as2.api.entity.MimeEntity
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, setMainBodyMethods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentType, toString
-
Field Details
-
boundary
-
-
Constructor Details
-
MultipartMimeEntity
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType) -
MultipartMimeEntity
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType, boolean isMainBody) -
MultipartMimeEntity
public MultipartMimeEntity(org.apache.http.entity.ContentType contentType, boolean isMainBody, String boundary) -
MultipartMimeEntity
protected MultipartMimeEntity()
-
-
Method Details
-
getBoundary
-
addPart
-
getPart
-
getPartCount
public int getPartCount() -
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity- Overrides:
getContentLengthin classMimeEntity
-
writeTo
- Throws:
IOException
-