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