Class BasicResponseHandler

java.lang.Object
org.apache.http.impl.client.AbstractResponseHandler<String>
org.apache.http.impl.client.BasicResponseHandler
All Implemented Interfaces:
ResponseHandler<String>

@Contract(threading=IMMUTABLE) public class BasicResponseHandler extends AbstractResponseHandler<String>
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 HttpClient.execute(org.apache.http.client.methods.HttpUriRequest, org.apache.http.client.ResponseHandler), HttpClient may handle redirects (3xx responses) internally.

Since:
4.0