java.lang.Object | |
↳ | org.apache.http.impl.client.BasicResponseHandler |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
A ResponseHandler
that returns the response body as a String
for successful (2xx) responses. If the response code was >= 300, the response
body is consumed and an HttpResponseException
is thrown.
If this is used with
{@link org.apache.http.client.HttpClient#execute(
org.apache.http.client.methods.HttpUriRequest, ResponseHandler),
HttpClient may handle redirects (3xx responses) internally.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the response body as a String if the response was successful (a
2xx status code).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.client.ResponseHandler
|
Returns the response body as a String if the response was successful (a
2xx status code). If no response body exists, this returns null. If the
response was unsuccessful (>= 300 status code), throws an
HttpResponseException
.
response | The response to process |
---|
HttpResponseException | |
---|---|
IOException |