@Override public int getMaxInactiveInterval() { return wrapped.getMaxInactiveInterval(); }
@Override public int getMaxInactiveInterval() { return session.getMaxInactiveInterval(); }
/** * @see javax.servlet.http.HttpSession#getMaxInactiveInterval() */ public int getMaxInactiveInterval() { return portletSession.getMaxInactiveInterval(); }
public int getMaxInactiveInterval() { return _sess.getMaxInactiveInterval(); }
public int getMaxInactiveInterval() { return delegate.getMaxInactiveInterval(); }
public int getMaxInactiveInterval() { return portletSession.getMaxInactiveInterval(); }
/** * @see {@link ExternalContext#getSessionMaxInactiveInterval()} * @since JSF 2.1 */ @Override public int getSessionMaxInactiveInterval() { PortletSession portletSession = (PortletSession) getSession(true); return portletSession.getMaxInactiveInterval(); }
/** * @see {@link ExternalContext#getSessionMaxInactiveInterval()} * @since JSF 2.1 */ @Override public int getSessionMaxInactiveInterval() { PortletSession portletSession = (PortletSession) getSession(true); return portletSession.getMaxInactiveInterval(); }
public int getMaxInactiveInterval() { return _navsess instanceof HttpSession ? ((HttpSession) _navsess).getMaxInactiveInterval() : _navsess != null ? ((PortletSession) _navsess).getMaxInactiveInterval() : -1; }
/** Point at which the JWT expires */ protected final Date getExpiration(RenderRequest renderRequest) { // Expiration of the JWT final PortletSession portletSession = renderRequest.getPortletSession(); final Date rslt = new Date( portletSession.getLastAccessedTime() + ((long) portletSession.getMaxInactiveInterval() * 1000L)); return rslt; } }
/** Point at which the JWT expires */ protected final Date getExpiration(RenderRequest renderRequest) { // Expiration of the JWT final PortletSession portletSession = renderRequest.getPortletSession(); final Date rslt = new Date( portletSession.getLastAccessedTime() + ((long) portletSession.getMaxInactiveInterval() * 1000L)); return rslt; } }
public static void dumpSessionProperties(final StringBuffer sb, final PortletRequest request, final String lf, final String indent) { final PortletSession session = request.getPortletSession(false); if (session == null) { return; } sb.append(indent); sb.append("Session SessionId=").append(session.getId()); sb.append(lf).append(indent); sb.append("Session :: CreationTime=").append(session.getCreationTime()); sb.append(", LastAccessedTime=").append(session.getLastAccessedTime()); sb.append(", MaxInactiveInterval=").append( session.getMaxInactiveInterval()); sb.append(lf); }
@RenderMapping public String writeJsContent(RenderRequest req, RenderResponse resp, Model model) throws IOException { if (PortletRequest.RENDER_HEADERS.equals(req.getAttribute(PortletRequest.RENDER_PART))) { PortletPreferences prefs = req.getPreferences(); boolean enabled = getEnabled(prefs); int timeout = req.getPortletSession().getMaxInactiveInterval(); String logoutURL = prefs.getValue(PREF_LOGOUT_URL_FRAGMENT, DEFAULT_LOGOUT_URL_FRAGMENT); String resetURL = prefs.getValue(PREF_RESET_SESSION_URL_FRAGMENT, DEFAULT_RESET_SESSION_FRAGMENT); int dialogDisplayTime = getDialogDisplayTime(prefs, timeout); model.addAttribute(ATTR_ENABLED, enabled); model.addAttribute(ATTR_SESSION_TIMEOUT_MS, timeout * 1000); model.addAttribute(ATTR_DIALOG_DISPLAY_MS, dialogDisplayTime * 1000); model.addAttribute(ATTR_LOGOUT_URL_FRAGMENT, logoutURL); model.addAttribute(ATTR_RESET_SESSION_URL_FRAGMENT, resetURL); return HEADER_JSP; } else { return BODY_JSP; } }
new Date( portletSession.getLastAccessedTime() + ((long) portletSession.getMaxInactiveInterval() * 1000L));
new Date( portletSession.getLastAccessedTime() + ((long) portletSession.getMaxInactiveInterval() * 1000L));
.append(request.isRequestedSessionIdFromURL() ? " URL" : "") .append(", expiring after: ") .append(portletSession.getMaxInactiveInterval()) .append("s "); log.debug(message.toString()