getRequestProcessor().handleRequest(httpServletRequest, httpServletResponse);
}
protected RequestProcessor createRequestProcessor() throws ClassNotFoundException,
InstantiationException, IllegalAccessException, IOException {
DeploymentConfiguration deploymentConfiguration = getDeploymentConfiguration();
// order of next two lines is important to allow Application to have
// control over priority order of Providers
Application app = getApplication();
if (app == null) {
app = getApplication(deploymentConfiguration);
}
if (logger.isTraceEnabled()) {
logger.trace("Setting application to " + app.toString());
}
deploymentConfiguration.addApplication(app, false);
if (!LoggerFactory.getLogger(Resources.class).isTraceEnabled()) {
/*
* if just debug or higher is enabled, then log only user
* applications
*/
new Resources(deploymentConfiguration.getResourceRegistry()).log();
}
if (!LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
/*
* if just debug or higher is enabled, then log only user
* applications
*/
new Providers(deploymentConfiguration.getProvidersRegistry()).log();
}
RequestProcessor requestProcessor = new RequestProcessor(deploymentConfiguration);
logger.trace("Creating request processor {} for servlet {}", requestProcessor, this); //$NON-NLS-1$
if (LoggerFactory.getLogger(Resources.class).isTraceEnabled()) {
/*
* if full trace is enabled, then log everything
*/
new Resources(deploymentConfiguration.getResourceRegistry()).log();
}
if (LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
/*
* if full trace is enabled, then log everything
*/
new Providers(deploymentConfiguration.getProvidersRegistry()).log();
}
return requestProcessor;
}