Package org.elasticsearch.client
Class RestClient.ContentCompressingEntity
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.apache.http.client.entity.GzipCompressingEntity
org.elasticsearch.client.RestClient.ContentCompressingEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Enclosing class:
- RestClient
public static class RestClient.ContentCompressingEntity
extends org.apache.http.client.entity.GzipCompressingEntity
A gzip compressing entity that also implements
getContent().-
Field Summary
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity -
Constructor Summary
Constructors Constructor Description ContentCompressingEntity(org.apache.http.HttpEntity entity) -
Method Summary
Modifier and Type Method Description java.io.InputStreamgetContent()Methods inherited from class org.apache.http.client.entity.GzipCompressingEntity
getContentEncoding, getContentLength, isChunked, writeToMethods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentType, isRepeatable, isStreamingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ContentCompressingEntity
public ContentCompressingEntity(org.apache.http.HttpEntity entity)
-
-
Method Details
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classorg.apache.http.client.entity.GzipCompressingEntity- Throws:
java.io.IOException
-