try
{
response = request.get();
Assert.assertEquals(HttpResponseCodes.SC_OK, response.getStatus());
//response.releaseConnection();
ApacheHttpClient4Executor executor = (ApacheHttpClient4Executor) request.getExecutor();
executor.getHttpClient().getConnectionManager().shutdown();
// request.getExecutor().close();
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
{
ClientRequest request = new ClientRequest(generateURL("/wrappers"));
request.header(HttpHeaderNames.ACCEPT, "application/" + type);
request.header(type, value);
ClientResponse<?> response;
try
{
response = request.get();
Assert.assertEquals(HttpResponseCodes.SC_OK, response.getStatus());
//response.releaseConnection();
ApacheHttpClient4Executor executor = (ApacheHttpClient4Executor) request.getExecutor();
executor.getHttpClient().getConnectionManager().shutdown();
// request.getExecutor().close();
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
{
ClientRequest request = new ClientRequest(generateURL("/list"));
request.header(HttpHeaderNames.ACCEPT, "application/" + type);
request.header(type, value);
request.header(type, value);
request.header(type, value);
ClientResponse<?> response;
try
{
response = request.get();
Assert.assertEquals(HttpResponseCodes.SC_OK, response.getStatus());
//response.releaseConnection();
ApacheHttpClient4Executor executor = (ApacheHttpClient4Executor) request.getExecutor();
executor.getHttpClient().getConnectionManager().shutdown();
// request.getExecutor().close();
}
catch (Exception e)
{
throw new RuntimeException(e);