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) |
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 java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
getContent
in interface org.apache.http.HttpEntity
getContent
in class HttpEntityStub
java.io.IOException
java.lang.IllegalStateException
public void writeTo(java.io.OutputStream outputStream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class HttpEntityStub
java.io.IOException
public void consumeContent() throws java.io.IOException
consumeContent
in interface org.apache.http.HttpEntity
consumeContent
in class HttpEntityStub
java.io.IOException