Class TextPlainEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
org.apache.camel.component.as2.api.entity.TextPlainEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

public class TextPlainEntity extends MimeEntity
  • Constructor Details

    • TextPlainEntity

      public TextPlainEntity(String content, String charset, String contentTransferEncoding, boolean isMainBody)
  • Method Details

    • getText

      public String getText()
    • writeTo

      public void writeTo(OutputStream outstream) 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
    • close

      public void close() throws IOException
      Throws:
      IOException