public class TestHttpResponse.TestHttpEntity extends HttpEntityStub
HttpEntityStub.ResponseRule| Constructor | Description |
|---|---|
TestHttpEntity() |
| Modifier and Type | Method | 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 class HttpEntityStubpublic org.apache.http.Header getContentType()
getContentType in class HttpEntityStubpublic org.apache.http.Header getContentEncoding()
getContentEncoding in class HttpEntityStubpublic boolean isStreaming()
isStreaming in class HttpEntityStubpublic boolean isRepeatable()
isRepeatable in class HttpEntityStubpublic InputStream getContent() throws IOException, IllegalStateException
getContent in class HttpEntityStubIOExceptionIllegalStateExceptionpublic void writeTo(OutputStream outputStream) throws IOException
writeTo in class HttpEntityStubIOExceptionpublic void consumeContent()
throws IOException
consumeContent in class HttpEntityStubIOException