public class Response
extends java.lang.Object
HttpResponse
returned and associates it with
its corresponding RequestLine
and HttpHost
.Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpEntity |
getEntity()
Returns the response body available, null otherwise
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the first header with a specified name of this message.
|
org.apache.http.Header[] |
getHeaders()
Returns all the response headers
|
org.apache.http.HttpHost |
getHost()
Returns the node that returned this response
|
org.apache.http.RequestLine |
getRequestLine()
Returns the request line that generated this response
|
org.apache.http.StatusLine |
getStatusLine()
Returns the status line of the current response
|
java.lang.String |
toString() |
public org.apache.http.RequestLine getRequestLine()
public org.apache.http.HttpHost getHost()
public org.apache.http.StatusLine getStatusLine()
public org.apache.http.Header[] getHeaders()
public java.lang.String getHeader(java.lang.String name)
null
is returned.public org.apache.http.HttpEntity getEntity()
HttpEntity
public java.lang.String toString()
toString
in class java.lang.Object