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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.http.Headerlongorg.apache.http.HeaderbooleanbooleanvoidwriteTo(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:
getContentLengthin interfaceorg.apache.http.HttpEntity- Overrides:
getContentLengthin classHttpEntityStub
-
getContentType
public org.apache.http.Header getContentType()- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity- Overrides:
getContentTypein classHttpEntityStub
-
getContentEncoding
public org.apache.http.Header getContentEncoding()- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity- Overrides:
getContentEncodingin classHttpEntityStub
-
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity- Overrides:
isStreamingin classHttpEntityStub
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity- Overrides:
isRepeatablein classHttpEntityStub
-
getContent
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classHttpEntityStub- Throws:
IOExceptionIllegalStateException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Overrides:
writeToin classHttpEntityStub- Throws:
IOException
-
consumeContent
- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity- Overrides:
consumeContentin classHttpEntityStub- Throws:
IOException
-