org.bonitasoft.engine.http
public class BonitaResponseHandler extends org.apache.http.impl.client.BasicResponseHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
REST_SERVER_EXCEPTION |
| Constructor and Description |
|---|
BonitaResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
handleResponse(org.apache.http.HttpResponse response)
Returns the response body as a String if the response was successful (a
2xx status code).
|
public static final String REST_SERVER_EXCEPTION
public String handleResponse(org.apache.http.HttpResponse response) throws org.apache.http.client.HttpResponseException, IOException
HttpResponseException.handleResponse in interface org.apache.http.client.ResponseHandler<String>handleResponse in class org.apache.http.impl.client.BasicResponseHandlerorg.apache.http.client.HttpResponseExceptionIOExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.