}
}
}
setHandlerFactory (rh);
Handler handler =
rh.handlerFactory.getNewInstance (this, tlh,
request, requestBuffer,
rh.webHeader, rh.content,
getMayCache (),
getMayFilter (), rh.size);
if (handler == null) {
doError (500, "Something fishy with that handler....");
} else {
finalFixesOnWebHeader (rh, handler);
// HTTP/0.9 does not support HEAD, so webheader should be valid.
if (request.isHeadOnlyRequest ()) {
rh.content.release (this);
sendAndRestart (rh.webHeader);
} else {
handler.handle ();
}
}
} catch (Throwable t) {
handleInternalError (t);
}