handleResponse
public String handleResponse(org.apache.http.HttpResponse response)
throws org.apache.http.client.HttpResponseException,
IOException
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.
- Specified by:
handleResponse in interface org.apache.http.client.ResponseHandler<String>
- Overrides:
handleResponse in class org.apache.http.impl.client.BasicResponseHandler
- Throws:
org.apache.http.client.HttpResponseException
IOException