HttpAsyncClientUtils.closeQuietly(this.httpclient);
}
private HttpHost start() throws Exception {
final UriHttpAsyncRequestHandlerMapper registry = new UriHttpAsyncRequestHandlerMapper();
registry.register("/echo/*", new BasicAsyncRequestHandler(new EchoHandler()));
registry.register("/random/*", new BasicAsyncRequestHandler(new RandomHandler()));
return start(registry, null);
}