String companyId = PortalUtil.getCompanyId(req);
Map currentUsers = (Map)WebAppPool.get(
companyId, WebKeys.CURRENT_USERS);
UserTracker userTracker = (UserTracker)currentUsers.get(ses.getId());
if ((userTracker != null) &&
((path != null) &&
(!path.equals(_PATH_C)) &&
(path.indexOf(_PATH_J_SECURITY_CHECK) == -1) &&
(path.indexOf(_PATH_PORTAL_PROTECTED) == -1))) {
/*Map parameterMap = null;
if (req instanceof UploadServletRequest) {
UploadServletRequest uploadServletReq =
(UploadServletRequest)req;
parameterMap = uploadServletReq.getRequest().getParameterMap();
}
else {
parameterMap = req.getParameterMap();
}*/
StringBuffer fullPathSB = new StringBuffer();
fullPathSB.append(path);
//fullPathSB.append(Http.parameterMapToString(parameterMap));
fullPathSB.append(StringPool.QUESTION);
fullPathSB.append(req.getQueryString());
userTracker.addPath(
new UserTrackerPath(
userTracker.getUserTrackerId(),
userTracker.getUserTrackerId(), fullPathSB.toString(),
new Date()));
}
String userId = req.getRemoteUser();