public class TestHttpResponse.TestHttpEntity extends HttpEntityStub
HttpEntityStub.ResponseRule
Constructor and Description |
---|
TestHttpEntity() |
Modifier and Type | Method and Description |
---|---|
void |
consumeContent() |
InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outputStream) |
isChunked
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
getContentLength
in class HttpEntityStub
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
getContentType
in class HttpEntityStub
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
getContentEncoding
in class HttpEntityStub
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
isStreaming
in class HttpEntityStub
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
isRepeatable
in class HttpEntityStub
public InputStream getContent() throws IOException, IllegalStateException
getContent
in interface org.apache.http.HttpEntity
getContent
in class HttpEntityStub
IOException
IllegalStateException
public void writeTo(OutputStream outputStream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class HttpEntityStub
IOException
public void consumeContent() throws IOException
consumeContent
in interface org.apache.http.HttpEntity
consumeContent
in class HttpEntityStub
IOException