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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.httpclient.HttpEntityStub
HttpEntityStub.ResponseRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.http.Header
long
org.apache.http.Header
boolean
boolean
void
writeTo
(OutputStream outputStream) Methods inherited from class org.robolectric.shadows.httpclient.HttpEntityStub
isChunked
-
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
-