public class HttpResponseStub extends Object implements org.apache.http.HttpResponse
Constructor and Description |
---|
HttpResponseStub() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(org.apache.http.Header header) |
void |
addHeader(String s,
String s1) |
boolean |
containsHeader(String s) |
org.apache.http.Header[] |
getAllHeaders() |
org.apache.http.HttpEntity |
getEntity() |
org.apache.http.Header |
getFirstHeader(String s) |
org.apache.http.Header[] |
getHeaders(String s) |
org.apache.http.Header |
getLastHeader(String s) |
Locale |
getLocale() |
HttpParams |
getParams() |
org.apache.http.ProtocolVersion |
getProtocolVersion() |
org.apache.http.StatusLine |
getStatusLine() |
org.apache.http.HeaderIterator |
headerIterator() |
org.apache.http.HeaderIterator |
headerIterator(String s) |
void |
removeHeader(org.apache.http.Header header) |
void |
removeHeaders(String s) |
void |
setEntity(org.apache.http.HttpEntity httpEntity) |
void |
setHeader(org.apache.http.Header header) |
void |
setHeader(String s,
String s1) |
void |
setHeaders(org.apache.http.Header[] headers) |
void |
setLocale(Locale locale) |
void |
setParams(HttpParams httpParams) |
void |
setReasonPhrase(String s) |
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) |
public org.apache.http.StatusLine getStatusLine()
getStatusLine
in interface org.apache.http.HttpResponse
public void setStatusLine(org.apache.http.StatusLine statusLine)
setStatusLine
in interface org.apache.http.HttpResponse
public void setStatusLine(org.apache.http.ProtocolVersion protocolVersion, int i)
setStatusLine
in interface org.apache.http.HttpResponse
public void setStatusLine(org.apache.http.ProtocolVersion protocolVersion, int i, String s)
setStatusLine
in interface org.apache.http.HttpResponse
public void setStatusCode(int i) throws IllegalStateException
setStatusCode
in interface org.apache.http.HttpResponse
IllegalStateException
public void setReasonPhrase(String s) throws IllegalStateException
setReasonPhrase
in interface org.apache.http.HttpResponse
IllegalStateException
public org.apache.http.HttpEntity getEntity()
getEntity
in interface org.apache.http.HttpResponse
public void setEntity(org.apache.http.HttpEntity httpEntity)
setEntity
in interface org.apache.http.HttpResponse
public Locale getLocale()
getLocale
in interface org.apache.http.HttpResponse
public void setLocale(Locale locale)
setLocale
in interface org.apache.http.HttpResponse
public org.apache.http.ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface org.apache.http.HttpMessage
public boolean containsHeader(String s)
containsHeader
in interface org.apache.http.HttpMessage
public org.apache.http.Header[] getHeaders(String s)
getHeaders
in interface org.apache.http.HttpMessage
public org.apache.http.Header getFirstHeader(String s)
getFirstHeader
in interface org.apache.http.HttpMessage
public org.apache.http.Header getLastHeader(String s)
getLastHeader
in interface org.apache.http.HttpMessage
public org.apache.http.Header[] getAllHeaders()
getAllHeaders
in interface org.apache.http.HttpMessage
public void addHeader(org.apache.http.Header header)
addHeader
in interface org.apache.http.HttpMessage
public void addHeader(String s, String s1)
addHeader
in interface org.apache.http.HttpMessage
public void setHeader(org.apache.http.Header header)
setHeader
in interface org.apache.http.HttpMessage
public void setHeader(String s, String s1)
setHeader
in interface org.apache.http.HttpMessage
public void setHeaders(org.apache.http.Header[] headers)
setHeaders
in interface org.apache.http.HttpMessage
public void removeHeader(org.apache.http.Header header)
removeHeader
in interface org.apache.http.HttpMessage
public void removeHeaders(String s)
removeHeaders
in interface org.apache.http.HttpMessage
public org.apache.http.HeaderIterator headerIterator()
headerIterator
in interface org.apache.http.HttpMessage
public org.apache.http.HeaderIterator headerIterator(String s)
headerIterator
in interface org.apache.http.HttpMessage
public HttpParams getParams()
getParams
in interface org.apache.http.HttpMessage
public void setParams(HttpParams httpParams)
setParams
in interface org.apache.http.HttpMessage