@Override protected Object getAttribute(final String key) { final HttpSession httpSession = _getSession(); return (httpSession == null) ? null : httpSession.getAttribute(key); }
@Override protected void removeAttribute(String key) { HttpSession httpSession = getSession(); if (httpSession != null) { httpSession.removeAttribute(key); } }
@Override public Map<String, Object> getSessionMap() { if (_sessionMap == null) { checkHttpServletRequest(); _sessionMap = new SessionMap(_httpServletRequest); } return _sessionMap; }
@Override public Map<String, Object> getSessionMap() { if (_sessionMap == null) { checkHttpServletRequest(); _sessionMap = new SessionMap(_httpServletRequest); } return _sessionMap; }
@Override protected void removeAttribute(final String key) { final HttpSession httpSession = _getSession(); if (httpSession != null) { httpSession.removeAttribute(key); } }
@Override public Map<String, Object> getSessionMap() { if (_sessionMap == null) { checkHttpServletRequest(); _sessionMap = new SessionMap(_httpServletRequest); } return _sessionMap; }
@Override protected Object getAttribute(String key) { HttpSession httpSession = getSession(); return (httpSession == null) ? null : httpSession.getAttribute(key.toString()); }
@Override protected Object getAttribute(final String key) { final HttpSession httpSession = _getSession(); return (httpSession == null) ? null : httpSession.getAttribute(key); }
@Override public Map<String, Object> getSessionMap() { if (_sessionMap == null) { checkHttpServletRequest(); _sessionMap = new SessionMap(_httpServletRequest); } return _sessionMap; }
/** * This will clear the session without invalidation. If no session has been created, it will simply return. */ @Override public void clear() { HttpSession session = getSession(); if (session == null) return; for (Enumeration attributeNames = session.getAttributeNames(); attributeNames.hasMoreElements();) { String attributeName = (String) attributeNames.nextElement(); session.removeAttribute(attributeName); } } }
@Override protected void removeAttribute(final String key) { final HttpSession httpSession = _getSession(); if (httpSession != null) { httpSession.removeAttribute(key); } }
@Override @SuppressWarnings("unchecked") protected Enumeration<String> getAttributeNames() { HttpSession httpSession = getSession(); return (httpSession == null) ? NullEnumeration.instance() : httpSession.getAttributeNames(); }
@Override protected void removeAttribute(final String key) { final HttpSession httpSession = _getSession(); if (httpSession != null) { httpSession.removeAttribute(key); } }
@Override protected Object getAttribute(final String key) { final HttpSession httpSession = _getSession(); return (httpSession == null) ? null : httpSession.getAttribute(key); }
@Override @SuppressWarnings("unchecked") protected Enumeration<String> getAttributeNames() { final HttpSession httpSession = _getSession(); return (httpSession == null) ? NullEnumeration.instance() : httpSession.getAttributeNames(); }
@Override @SuppressWarnings("unchecked") protected Enumeration<String> getAttributeNames() { final HttpSession httpSession = _getSession(); return (httpSession == null) ? Collections.emptyEnumeration() : httpSession.getAttributeNames(); }
@Override @SuppressWarnings("unchecked") protected Enumeration<String> getAttributeNames() { final HttpSession httpSession = _getSession(); return (httpSession == null) ? NullEnumeration.instance() : httpSession.getAttributeNames(); }