Class Rest5Client.ContentCompressingEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.HttpEntityWrapper
org.apache.hc.client5.http.entity.GzipCompressingEntity
co.elastic.clients.transport.rest5_client.low_level.Rest5Client.ContentCompressingEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity
Enclosing class:
Rest5Client

public static class Rest5Client.ContentCompressingEntity extends org.apache.hc.client5.http.entity.GzipCompressingEntity
A gzip compressing entity that also implements getContent().
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContentCompressingEntity(org.apache.hc.core5.http.HttpEntity entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.apache.hc.client5.http.entity.GzipCompressingEntity

    getContentEncoding, getContentLength, isChunked, writeTo

    Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper

    close, getContentType, getTrailerNames, getTrailers, isRepeatable, isStreaming, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ContentCompressingEntity

      public ContentCompressingEntity(org.apache.hc.core5.http.HttpEntity entity)
  • Method Details

    • getContent

      public InputStream getContent() throws IOException
      Specified by:
      getContent in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      getContent in class org.apache.hc.client5.http.entity.GzipCompressingEntity
      Throws:
      IOException