public class HttpclientEntity extends Object implements org.apache.http.HttpEntity
Constructor and Description |
---|
HttpclientEntity(ForestRequest request,
org.apache.http.HttpEntity entity,
LifeCycleHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
consumeContent() |
InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outputStream) |
public HttpclientEntity(ForestRequest request, org.apache.http.HttpEntity entity, LifeCycleHandler handler)
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
public InputStream getContent() throws IOException, UnsupportedOperationException
getContent
in interface org.apache.http.HttpEntity
IOException
UnsupportedOperationException
public void writeTo(OutputStream outputStream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public void consumeContent() throws IOException
consumeContent
in interface org.apache.http.HttpEntity
IOException
Copyright © 2020. All rights reserved.