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

      public String 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

      public boolean containsHeader(String name)
    • getHeaders

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

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

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

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

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

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

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

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

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

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

      public void removeHeaders(String name)
    • removeAllHeaders

      public void removeAllHeaders()
    • isRepeatable

      public boolean isRepeatable()
      Specified by:
      isRepeatable in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      isRepeatable in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
    • isStreaming

      public boolean isStreaming()
    • getContentLength

      public long getContentLength()
    • getContent

      Throws:
      IOException
      UnsupportedOperationException
    • getCharset

      public String getCharset()