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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeContent()InputStreamgetContent()org.apache.http.HeadergetContentEncoding()longgetContentLength()org.apache.http.HeadergetContentType()booleanisRepeatable()booleanisStreaming()voidwriteTo(OutputStream outputStream)-
Methods inherited from class org.robolectric.shadows.httpclient.HttpEntityStub
isChunked
-
-
-
-
Method Detail
-
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
public InputStream getContent() throws IOException, IllegalStateException
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classHttpEntityStub- Throws:
IOExceptionIllegalStateException
-
writeTo
public void writeTo(OutputStream outputStream) throws IOException
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Overrides:
writeToin classHttpEntityStub- Throws:
IOException
-
consumeContent
public void consumeContent() throws IOException- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity- Overrides:
consumeContentin classHttpEntityStub- Throws:
IOException
-
-