Class HttpMimeMessageEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
com.helger.phase4.http.HttpMimeMessageEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

public class HttpMimeMessageEntity extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
Special HTTP entity that reads and writes to a MimeMessage.
Author:
Philip Helger, bayerlma
  • Constructor Details

  • Method Details

    • close

      public final void close() throws IOException
      Throws:
      IOException
    • getMimeMessage

      @Nonnull public final jakarta.mail.internet.MimeMessage getMimeMessage()
      Returns:
      The mime message passed in the constructor. Never null.
    • 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
    • getContentLength

      public long getContentLength()
    • isStreaming

      public boolean isStreaming()
    • getContent

      public InputStream getContent() throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(@Nonnull OutputStream aOS) throws IOException
      Specified by:
      writeTo in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      writeTo in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
    • create