// If so, we need to go and get the resource.
remappedURL = httpResponse.encodeRedirectURL(remappedURL);
try {
// create MarinerRequestContext instance
MarinerRequestContext marinerRequestContext = null;
try {
MarinerServletRequestContext msrc =
new MarinerServletRequestContext(
filterConfig.getServletContext(), httpRequest, httpResponse);
marinerRequestContext =
MarinerServletRequestContext.findInstance(httpRequest);
} catch (Exception e) {
if (LOGGER.isDebugEnabled()) {
LOGGER.warn("Cannot create MarinerRequestContext");
}
}
// Create the web driver configuration - this information
// comes from mcs-config.xml in normal MCS operation.
WebDriverConfiguration webdConfig =
createWebDriverConfig();
// set encoding if available
// ported from 4.2.0, see vbm 2007070313
if (marinerRequestContext != null) {
webdConfig.setCharacterEncoding(
marinerRequestContext.getCharacterEncoding());
}
// Create a pipeline configuration which knows about the web
// driver configuration that we've specified, and the default
// MCS dynamic pipeline configuration.