Class CombinedEntity
java.lang.Object
org.apache.hc.client5.http.impl.cache.CombinedEntity
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hc.core5.http.EntityDetails
,org.apache.hc.core5.http.HttpEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputStream
private final org.apache.hc.core5.http.HttpEntity
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedEntity
(org.apache.hc.core5.http.HttpEntity entity, org.apache.hc.core5.util.ByteArrayBuffer buf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
org.apache.hc.core5.function.Supplier
<List<? extends org.apache.hc.core5.http.Header>> boolean
boolean
boolean
void
writeTo
(OutputStream outStream)
-
Field Details
-
entity
private final org.apache.hc.core5.http.HttpEntity entity -
combinedStream
-
-
Constructor Details
-
CombinedEntity
CombinedEntity(org.apache.hc.core5.http.HttpEntity entity, org.apache.hc.core5.util.ByteArrayBuffer buf) throws IOException - Throws:
IOException
-
-
Method Details
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentType
- Specified by:
getContentType
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceorg.apache.hc.core5.http.EntityDetails
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceorg.apache.hc.core5.http.EntityDetails
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceorg.apache.hc.core5.http.HttpEntity
-
isStreaming
public boolean isStreaming()- Specified by:
isStreaming
in interfaceorg.apache.hc.core5.http.HttpEntity
-
getContent
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
IllegalStateException
-
getTrailerNames
- Specified by:
getTrailerNames
in interfaceorg.apache.hc.core5.http.EntityDetails
-
getTrailers
public org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> getTrailers()- Specified by:
getTrailers
in interfaceorg.apache.hc.core5.http.HttpEntity
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-