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) |
isChunked
public long getContentLength()
getContentLength
in class HttpEntityStub
public org.apache.http.Header getContentType()
getContentType
in class HttpEntityStub
public org.apache.http.Header getContentEncoding()
getContentEncoding
in class HttpEntityStub
public boolean isStreaming()
isStreaming
in class HttpEntityStub
public boolean isRepeatable()
isRepeatable
in class HttpEntityStub
public InputStream getContent() throws IOException, IllegalStateException
getContent
in class HttpEntityStub
IOException
IllegalStateException
public void writeTo(OutputStream outputStream) throws IOException
writeTo
in class HttpEntityStub
IOException
public void consumeContent() throws IOException
consumeContent
in class HttpEntityStub
IOException