37 HttpResponse response = deployment.getClient().execute(httpRequest);
38 int status = response.getStatusLine().getStatusCode();
41 throw new HttpClientAdapterException(
"Unexpected status = " + status);
43 HttpEntity entity = response.getEntity();
45 throw new HttpClientAdapterException(
"There was no entity.");
47 InputStream is = entity.getContent();
49 return JsonSerialization.readValue(is, clazz);
53 }
catch (IOException ignored) {
57 }
catch (IOException e) {
58 throw new HttpClientAdapterException(
"IO error", e);
static void close(HttpResponse response)
Definition: HttpAdapterUtils.java:63