Class HttpResponseStub
java.lang.Object
org.robolectric.shadows.httpclient.HttpResponseStub
- All Implemented Interfaces:
org.apache.http.HttpMessage
,org.apache.http.HttpResponse
- Direct Known Subclasses:
TestHttpResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addHeader
(org.apache.http.Header header) boolean
org.apache.http.Header[]
org.apache.http.HttpEntity
org.apache.http.Header
org.apache.http.Header[]
getHeaders
(String s) org.apache.http.Header
org.apache.http.ProtocolVersion
org.apache.http.StatusLine
org.apache.http.HeaderIterator
org.apache.http.HeaderIterator
void
removeHeader
(org.apache.http.Header header) void
void
setEntity
(org.apache.http.HttpEntity httpEntity) void
void
setHeader
(org.apache.http.Header header) void
setHeaders
(org.apache.http.Header[] headers) void
void
setParams
(HttpParams httpParams) void
void
setStatusCode
(int i) void
setStatusLine
(org.apache.http.ProtocolVersion protocolVersion, int i) void
setStatusLine
(org.apache.http.ProtocolVersion protocolVersion, int i, String s) void
setStatusLine
(org.apache.http.StatusLine statusLine)
-
Constructor Details
-
HttpResponseStub
public HttpResponseStub()
-
-
Method Details
-
getStatusLine
public org.apache.http.StatusLine getStatusLine()- Specified by:
getStatusLine
in interfaceorg.apache.http.HttpResponse
-
setStatusLine
public void setStatusLine(org.apache.http.StatusLine statusLine) - Specified by:
setStatusLine
in interfaceorg.apache.http.HttpResponse
-
setStatusLine
public void setStatusLine(org.apache.http.ProtocolVersion protocolVersion, int i) - Specified by:
setStatusLine
in interfaceorg.apache.http.HttpResponse
-
setStatusLine
- Specified by:
setStatusLine
in interfaceorg.apache.http.HttpResponse
-
setStatusCode
- Specified by:
setStatusCode
in interfaceorg.apache.http.HttpResponse
- Throws:
IllegalStateException
-
setReasonPhrase
- Specified by:
setReasonPhrase
in interfaceorg.apache.http.HttpResponse
- Throws:
IllegalStateException
-
getEntity
public org.apache.http.HttpEntity getEntity()- Specified by:
getEntity
in interfaceorg.apache.http.HttpResponse
-
setEntity
public void setEntity(org.apache.http.HttpEntity httpEntity) - Specified by:
setEntity
in interfaceorg.apache.http.HttpResponse
-
getLocale
- Specified by:
getLocale
in interfaceorg.apache.http.HttpResponse
-
setLocale
- Specified by:
setLocale
in interfaceorg.apache.http.HttpResponse
-
getProtocolVersion
public org.apache.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersion
in interfaceorg.apache.http.HttpMessage
-
containsHeader
- Specified by:
containsHeader
in interfaceorg.apache.http.HttpMessage
-
getHeaders
- Specified by:
getHeaders
in interfaceorg.apache.http.HttpMessage
-
getFirstHeader
- Specified by:
getFirstHeader
in interfaceorg.apache.http.HttpMessage
-
getLastHeader
- Specified by:
getLastHeader
in interfaceorg.apache.http.HttpMessage
-
getAllHeaders
public org.apache.http.Header[] getAllHeaders()- Specified by:
getAllHeaders
in interfaceorg.apache.http.HttpMessage
-
addHeader
public void addHeader(org.apache.http.Header header) - Specified by:
addHeader
in interfaceorg.apache.http.HttpMessage
-
addHeader
- Specified by:
addHeader
in interfaceorg.apache.http.HttpMessage
-
setHeader
public void setHeader(org.apache.http.Header header) - Specified by:
setHeader
in interfaceorg.apache.http.HttpMessage
-
setHeader
- Specified by:
setHeader
in interfaceorg.apache.http.HttpMessage
-
setHeaders
public void setHeaders(org.apache.http.Header[] headers) - Specified by:
setHeaders
in interfaceorg.apache.http.HttpMessage
-
removeHeader
public void removeHeader(org.apache.http.Header header) - Specified by:
removeHeader
in interfaceorg.apache.http.HttpMessage
-
removeHeaders
- Specified by:
removeHeaders
in interfaceorg.apache.http.HttpMessage
-
headerIterator
public org.apache.http.HeaderIterator headerIterator()- Specified by:
headerIterator
in interfaceorg.apache.http.HttpMessage
-
headerIterator
- Specified by:
headerIterator
in interfaceorg.apache.http.HttpMessage
-
getParams
- Specified by:
getParams
in interfaceorg.apache.http.HttpMessage
-
setParams
- Specified by:
setParams
in interfaceorg.apache.http.HttpMessage
-