public class TestHttpResponse.TestHttpEntity extends HttpEntityStub
HttpEntityStub.ResponseRule| Constructor and Description |
|---|
TestHttpEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.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 java.io.InputStream getContent()
throws java.io.IOException,
java.lang.IllegalStateException
getContent in interface org.apache.http.HttpEntitygetContent in class HttpEntityStubjava.io.IOExceptionjava.lang.IllegalStateExceptionpublic void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class HttpEntityStubjava.io.IOExceptionpublic void consumeContent()
throws java.io.IOException
consumeContent in interface org.apache.http.HttpEntityconsumeContent in class HttpEntityStubjava.io.IOException