final HttpRequest request,
final HttpAsyncExchange httpExchange,
final HttpContext context) throws HttpException, IOException {
HttpConnection conn = (HttpConnection) context.getAttribute(
ExecutionContext.HTTP_CONNECTION);
conn.shutdown();
HttpResponse response = httpExchange.getResponse();
response.setEntity(new NStringEntity("all is well", ContentType.TEXT_PLAIN));
httpExchange.submitResponse();
}