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) |
isChunkedpublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitygetContentLength in class HttpEntityStubpublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitygetContentType in class HttpEntityStubpublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitygetContentEncoding in class HttpEntityStubpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntityisStreaming in class HttpEntityStubpublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntityisRepeatable in class HttpEntityStubpublic InputStream getContent() throws IOException, IllegalStateException
getContent in interface org.apache.http.HttpEntitygetContent in class HttpEntityStubIOExceptionIllegalStateExceptionpublic void writeTo(OutputStream outputStream) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class HttpEntityStubIOExceptionpublic void consumeContent()
throws IOException
consumeContent in interface org.apache.http.HttpEntityconsumeContent in class HttpEntityStubIOException