Class TestHttpResponse.TestHttpEntity
java.lang.Object
org.robolectric.shadows.httpclient.HttpEntityStub
org.robolectric.shadows.httpclient.TestHttpResponse.TestHttpEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Enclosing class:
- TestHttpResponse
public class TestHttpResponse.TestHttpEntity extends HttpEntityStub
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.httpclient.HttpEntityStub
HttpEntityStub.ResponseRule
-
Constructor Summary
Constructors Constructor Description TestHttpEntity()
-
Method Summary
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)
-
Constructor Details
-
TestHttpEntity
public TestHttpEntity()
-
-
Method Details
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentLength
in classHttpEntityStub
-
getContentType
public org.apache.http.Header getContentType()- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentType
in classHttpEntityStub
-
getContentEncoding
public org.apache.http.Header getContentEncoding()- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentEncoding
in classHttpEntityStub
-
isStreaming
public boolean isStreaming()- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
- Overrides:
isStreaming
in classHttpEntityStub
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
- Overrides:
isRepeatable
in classHttpEntityStub
-
getContent
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContent
in classHttpEntityStub
- Throws:
IOException
IllegalStateException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Overrides:
writeTo
in classHttpEntityStub
- Throws:
IOException
-
consumeContent
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
consumeContent
in classHttpEntityStub
- Throws:
IOException
-