/** * Access the SessionState for the current request. Note: this is scoped only for the current request. * * @param req * The current portlet request. * @return The SessionState objet for the current request. */ protected SessionState getState(HttpServletRequest req) { // key the state based on the pid, if present. If not we will use the servlet's class name String key = getPid(req); if (key == null) { key = this.toString() + "."; log.warn("getState(): using servlet key: " + key); } SessionState rv = UsageSessionService.getSessionState(key); if (rv == null) { log.warn("getState(): no state found for key: " + key + " " + req.getPathInfo() + " " + req.getQueryString() + " " + req.getRequestURI()); } return rv; }
/** * Access the SessionState for the current request. Note: this is scoped only for the current request. * * @param req * The current portlet request. * @return The SessionState objet for the current request. */ protected SessionState getState(HttpServletRequest req) { // key the state based on the pid, if present. If not we will use the servlet's class name String key = getPid(req); if (key == null) { key = this.toString() + "."; log.warn("getState(): using servlet key: " + key); } SessionState rv = UsageSessionService.getSessionState(key); if (rv == null) { log.warn("getState(): no state found for key: " + key + " " + req.getPathInfo() + " " + req.getQueryString() + " " + req.getRequestURI()); } return rv; }