Class HttpEntityStub
java.lang.Object
org.robolectric.shadows.httpclient.HttpEntityStub
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Direct Known Subclasses:
TestHttpResponse.TestHttpEntity
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.http.Header
long
org.apache.http.Header
boolean
boolean
boolean
void
writeTo
(OutputStream outputStream)
-
Constructor Details
-
HttpEntityStub
public HttpEntityStub()
-
-
Method Details
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
getContent
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
IllegalStateException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
-
isStreaming
public boolean isStreaming()- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
consumeContent
- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
-