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
  • 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

      public String getContentTypeValue()
    • setContentType

      public void setContentType(org.apache.http.entity.ContentType contentType)
    • setContentType

      public void setContentType(org.apache.http.Header contentType)
      Overrides:
      setContentType in class org.apache.http.entity.AbstractHttpEntity
    • getContentEncodingValue

      public String getContentEncodingValue()
    • setContentEncoding

      public void setContentEncoding(org.apache.http.Header contentEncoding)
      Overrides:
      setContentEncoding in class org.apache.http.entity.AbstractHttpEntity
    • getContentTransferEncodingValue

      public String getContentTransferEncodingValue()
    • getContentTransferEncoding

      public org.apache.http.Header getContentTransferEncoding()
      Obtains the Content-Transfer-Encoding header. The default implementation returns the value of the contentEncoding attribute.
      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 the contentTransferEncoding attribute.
      Parameters:
      contentTransferEncoding - the new Content-Transfer-Encoding header, or null to unset
    • setContentTransferEncoding

      public void setContentTransferEncoding(String contentTranserEncoding)
      Specifies the Content-Transfer-Encoding header, as a string. The default implementation calls setContentTransferEncoding(Header).
      Parameters:
      contentTranserEncoding - - the new Content-Transfer-Encoding header, or null to unset
    • containsHeader

      public boolean containsHeader(String name)
    • getHeaders

      public org.apache.http.Header[] getHeaders(String name)
    • getFirstHeader

      public org.apache.http.Header getFirstHeader(String name)
    • getLastHeader

      public org.apache.http.Header getLastHeader(String name)
    • getAllHeaders

      public org.apache.http.Header[] getAllHeaders()
    • addHeader

      public void addHeader(org.apache.http.Header header)
    • addHeader

      public void addHeader(String name, String value)
    • setHeader

      public void setHeader(org.apache.http.Header header)
    • setHeader

      public void setHeader(String name, String value)
    • setHeaders

      public void setHeaders(org.apache.http.Header[] headers)
    • removeHeader

      public void removeHeader(org.apache.http.Header header)
    • removeHeaders

      public void removeHeaders(String name)
    • removeAllHeaders

      public void removeAllHeaders()
    • headerIterator

      public org.apache.http.HeaderIterator headerIterator()
    • headerIterator

      public org.apache.http.HeaderIterator headerIterator(String name)
    • isRepeatable

      public boolean isRepeatable()
    • isStreaming

      public boolean isStreaming()
    • getContentLength

      public long getContentLength()
    • getContent

      Throws:
      IOException
      UnsupportedOperationException
    • getCharset

      public String getCharset()