StandardEngineValvepublic final class StandardEngineValve extends org.apache.catalina.valves.ValveBase Valve that implements the default basic behavior for the
StandardEngine container implementation.
USAGE CONSTRAINT: This implementation is likely to be useful only
when processing HTTP requests. |
Fields Summary |
---|
private static final String | infoThe descriptive information related to this implementation. | private static final org.apache.catalina.util.StringManager | smThe string manager for this package. |
Methods Summary |
---|
public final void | event(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response, org.apache.catalina.CometEvent event)Process Comet event.
// Ask this Host to process this request
request.getHost().getPipeline().getFirst().event(request, response, event);
| public java.lang.String | getInfo()Return descriptive information about this Valve implementation.
// ------------------------------------------------------------- Properties
return (info);
| public final void | invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response 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.
// 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);
|
|