Class MultipartMimeEntity
java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
org.apache.camel.component.as2.api.entity.MultipartMimeEntity
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.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, isMainBody, RECALCULATE_CONTENT_LENGTH, UNKNOWN_CONTENT_LENGTH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultipartMimeEntity(AS2SignedDataGenerator signer, boolean isMainBody, String boundary) protectedMultipartMimeEntity(org.apache.hc.core5.http.ContentType contentType, String contentTransferEncoding) protectedMultipartMimeEntity(org.apache.hc.core5.http.ContentType contentType, String contentTransferEncoding, 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, getContentTransferEncoding, getContentTransferEncodingValue, getFirstHeader, getHeaders, getLastHeader, isMainBody, isRepeatable, isStreaming, removeAllHeaders, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setMainBodyMethods inherited from class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, toString, writeTo
-
Field Details
-
boundary
-
-
Constructor Details
-
MultipartMimeEntity
protected MultipartMimeEntity(org.apache.hc.core5.http.ContentType contentType, String contentTransferEncoding) -
MultipartMimeEntity
-
MultipartMimeEntity
-
-
Method Details
-
getBoundary
-
addPart
-
getPart
-
getPartCount
public int getPartCount() -
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.hc.core5.http.EntityDetails- Overrides:
getContentLengthin classMimeEntity
-
writeTo
- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity- Throws:
IOException
-