doPost( nabaztag, urlToCall, parameters);
}
}
private void doPost(final Nabaztag nabaztag, String urlToCall, String parameters) throws IOException {
asyncHttpClient.preparePost(urlToCall).setBody(parameters).execute(new AsyncCompletionHandler() {
@Override
public Object onCompleted(Response response) throws Exception {
String responseBody = response.getResponseBody();
logger.debug("responseBody {}", responseBody);
if(!responseBody.isEmpty())