Class MimeEntity
java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity
- Direct Known Subclasses:
ApplicationEntity,ApplicationPkcs7MimeCompressedDataEntity,ApplicationPkcs7MimeEnvelopedDataEntity,ApplicationPkcs7SignatureEntity,AS2MessageDispositionNotificationEntity,MultipartMimeEntity,TextPlainEntity
public abstract class MimeEntity
extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAn OuputStream wrapper that doesn't close its underlying output stream. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected booleanprotected static final longprotected static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMimeEntity(org.apache.hc.core5.http.ContentType contentType, String contentTransferEncoding) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddHeader(org.apache.hc.core5.http.Header header) booleancontainsHeader(String name) org.apache.hc.core5.http.Header[]longorg.apache.hc.core5.http.HeaderObtains the Content-Transfer-Encoding header.org.apache.hc.core5.http.HeadergetFirstHeader(String name) org.apache.hc.core5.http.Header[]getHeaders(String name) org.apache.hc.core5.http.HeadergetLastHeader(String name) booleanbooleanbooleanvoidvoidremoveHeader(org.apache.hc.core5.http.Header header) voidremoveHeaders(String name) voidvoidsetHeader(org.apache.hc.core5.http.Header header) voidsetHeaders(org.apache.hc.core5.http.Header[] headers) voidsetMainBody(boolean isMainBody) Methods inherited from class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, toString, writeTo, writeTo
-
Field Details
-
UNKNOWN_CONTENT_LENGTH
protected static final long UNKNOWN_CONTENT_LENGTH- See Also:
-
RECALCULATE_CONTENT_LENGTH
protected static final long RECALCULATE_CONTENT_LENGTH- See Also:
-
isMainBody
protected boolean isMainBody -
contentLength
protected long contentLength
-
-
Constructor Details
-
MimeEntity
protected MimeEntity(org.apache.hc.core5.http.ContentType contentType, String contentTransferEncoding)
-
-
Method Details
-
isMainBody
public boolean isMainBody() -
setMainBody
public void setMainBody(boolean isMainBody) -
getContentTransferEncodingValue
-
getContentTransferEncoding
public org.apache.hc.core5.http.Header getContentTransferEncoding()Obtains the Content-Transfer-Encoding header.- Returns:
- the Content-Transfer-Encoding header, or
null
-
containsHeader
-
getHeaders
-
getFirstHeader
-
getLastHeader
-
getAllHeaders
public org.apache.hc.core5.http.Header[] getAllHeaders() -
addHeader
public void addHeader(org.apache.hc.core5.http.Header header) -
addHeader
-
setHeader
public void setHeader(org.apache.hc.core5.http.Header header) -
setHeader
-
setHeaders
public void setHeaders(org.apache.hc.core5.http.Header[] headers) -
removeHeader
public void removeHeader(org.apache.hc.core5.http.Header header) -
removeHeaders
-
removeAllHeaders
public void removeAllHeaders() -
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
isStreaming
public boolean isStreaming() -
getContentLength
public long getContentLength() -
getContent
-
getCharset
-