public final void event(Request request,
Response response,
CometEvent event) throws IOException, ServletException {
// Ask this Host to process this request
request.getHost().getPipeline().getFirst().event(request, response, event);
}
|
public final void invoke(Request request,
Response response) throws IOException, ServletException {
// Select the Host to be used for this Request
Host host = request.getHost();
if (host == null) {
response.sendError
(HttpServletResponse.SC_BAD_REQUEST,
sm.getString("standardEngine.noHost",
request.getServerName()));
return;
}
// Ask this Host to process this request
host.getPipeline().getFirst().invoke(request, response);
}
Select the appropriate child Host to process this request,
based on the requested server name. If no matching Host can
be found, return an appropriate HTTP error. |