{
HttpExchange exchange = getHttpExchange();
if (exchange == null)
return false;
CompletableCallback callback = new CompletableCallback()
{
@Override
public void resume()
{
if (LOG.isDebugEnabled())
LOG.debug("Content consumed asynchronously, resuming processing");
process();
}
public void abort(Throwable x)
{
failAndClose(x);
}
};
responseContent(exchange, buffer, callback);
return callback.tryComplete();
}