// the request is targetted to the CoyoteAdapter.
mapper.map(req.getRequest().serverName(), decodedURI, mappingData);
updatePaths(req, mappingData);
ContextRootInfo contextRootInfo;
if (mappingData.context != null && (mappingData.context instanceof ContextRootInfo
|| mappingData.wrapper instanceof ContextRootInfo)) {
if (mappingData.wrapper != null) {
contextRootInfo = (ContextRootInfo) mappingData.wrapper;
} else {
contextRootInfo = (ContextRootInfo) mappingData.context;
}
return contextRootInfo.getHttpHandler();
} else if (mappingData.context != null &&
"com.sun.enterprise.web.WebModule".equals(mappingData.context.getClass().getName())) {
return ((V3Mapper) mapper).getHttpHandler();
}
return null;