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 void
consumeContent()
InputStream
getContent()
org.apache.http.Header
getContentEncoding()
long
getContentLength()
org.apache.http.Header
getContentType()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(OutputStream outputStream)
-
Methods inherited from class org.robolectric.shadows.httpclient.HttpEntityStub
isChunked
-
-
-
-
Method Detail
-
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
public InputStream getContent() throws IOException, IllegalStateException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContent
in classHttpEntityStub
- Throws:
IOException
IllegalStateException
-
writeTo
public void writeTo(OutputStream outputStream) throws IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Overrides:
writeTo
in classHttpEntityStub
- Throws:
IOException
-
consumeContent
public void consumeContent() throws IOException
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
consumeContent
in classHttpEntityStub
- Throws:
IOException
-
-