public void inputReady(final NHttpServerConnection conn, final ContentDecoder decoder) {
AsyncHttpService httpService = (AsyncHttpService) conn.getContext()
.getAttribute(HTTP_ASYNC_SERVICE);
try {
httpService.consumeContent(decoder);
} catch (IOException ex) {
httpService.shutdown(ex);
shutdownConnection(conn);
}
}