Class MimeEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Direct Known Subclasses:
ApplicationEDIEntity,ApplicationPkcs7MimeCompressedDataEntity,ApplicationPkcs7MimeEnvelopedDataEntity,ApplicationPkcs7SignatureEntity,AS2MessageDispositionNotificationEntity,MultipartMimeEntity,TextPlainEntity
public abstract class MimeEntity
extends org.apache.http.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 org.apache.http.Headerprotected booleanprotected static final longprotected static final longFields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddHeader(org.apache.http.Header header) booleancontainsHeader(String name) org.apache.http.Header[]longorg.apache.http.HeaderObtains the Content-Transfer-Encoding header.org.apache.http.HeadergetFirstHeader(String name) org.apache.http.Header[]getHeaders(String name) org.apache.http.HeadergetLastHeader(String name) org.apache.http.HeaderIteratororg.apache.http.HeaderIteratorheaderIterator(String name) booleanbooleanbooleanvoidvoidremoveHeader(org.apache.http.Header header) voidremoveHeaders(String name) voidsetContentEncoding(org.apache.http.Header contentEncoding) voidsetContentTransferEncoding(String contentTranserEncoding) Specifies the Content-Transfer-Encoding header, as a string.voidsetContentTransferEncoding(org.apache.http.Header contentTransferEncoding) Specifies the Content-Transfer-Encoding header.voidsetContentType(org.apache.http.entity.ContentType contentType) voidsetContentType(org.apache.http.Header contentType) voidvoidsetHeader(org.apache.http.Header header) voidsetHeaders(org.apache.http.Header[] headers) voidsetMainBody(boolean isMainBody) Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpEntity
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 -
contentTransferEncoding
protected org.apache.http.Header contentTransferEncoding -
contentLength
protected long contentLength
-
-
Constructor Details
-
MimeEntity
protected MimeEntity()
-
-
Method Details
-
isMainBody
public boolean isMainBody() -
setMainBody
public void setMainBody(boolean isMainBody) -
getContentTypeValue
-
setContentType
public void setContentType(org.apache.http.entity.ContentType contentType) -
setContentType
public void setContentType(org.apache.http.Header contentType) - Overrides:
setContentTypein classorg.apache.http.entity.AbstractHttpEntity
-
getContentEncodingValue
-
setContentEncoding
public void setContentEncoding(org.apache.http.Header contentEncoding) - Overrides:
setContentEncodingin classorg.apache.http.entity.AbstractHttpEntity
-
getContentTransferEncodingValue
-
getContentTransferEncoding
public org.apache.http.Header getContentTransferEncoding()Obtains the Content-Transfer-Encoding header. The default implementation returns the value of thecontentEncodingattribute.- Returns:
- the Content-Transfer-Encoding header, or
null
-
setContentTransferEncoding
public void setContentTransferEncoding(org.apache.http.Header contentTransferEncoding) Specifies the Content-Transfer-Encoding header. The default implementation sets the value of thecontentTransferEncodingattribute.- Parameters:
contentTransferEncoding- the new Content-Transfer-Encoding header, ornullto unset
-
setContentTransferEncoding
Specifies the Content-Transfer-Encoding header, as a string. The default implementation callssetContentTransferEncoding(Header).- Parameters:
contentTranserEncoding- - the new Content-Transfer-Encoding header, ornullto unset
-
containsHeader
-
getHeaders
-
getFirstHeader
-
getLastHeader
-
getAllHeaders
public org.apache.http.Header[] getAllHeaders() -
addHeader
public void addHeader(org.apache.http.Header header) -
addHeader
-
setHeader
public void setHeader(org.apache.http.Header header) -
setHeader
-
setHeaders
public void setHeaders(org.apache.http.Header[] headers) -
removeHeader
public void removeHeader(org.apache.http.Header header) -
removeHeaders
-
removeAllHeaders
public void removeAllHeaders() -
headerIterator
public org.apache.http.HeaderIterator headerIterator() -
headerIterator
-
isRepeatable
public boolean isRepeatable() -
isStreaming
public boolean isStreaming() -
getContentLength
public long getContentLength() -
getContent
-
getCharset
-