Class HttpServletSession
java.lang.Object
org.apache.shiro.web.session.HttpServletSession
- All Implemented Interfaces:
org.apache.shiro.session.Session
Session implementation that is backed entirely by a standard servlet container
HttpSession instance. It does not interact with any of Shiro's session-related components
SessionManager, SecurityManager, etc., and instead satisfies all method implementations by interacting
with a servlet container provided HttpSession instance.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(Object key) getHost()getId()longremoveAttribute(Object key) voidsetAttribute(Object key, Object value) protected voidvoidsetTimeout(long maxIdleTimeInMillis) voidstop()voidtouch()
-
Constructor Details
-
HttpServletSession
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.apache.shiro.session.Session
-
getStartTimestamp
- Specified by:
getStartTimestampin interfaceorg.apache.shiro.session.Session
-
getLastAccessTime
- Specified by:
getLastAccessTimein interfaceorg.apache.shiro.session.Session
-
getTimeout
- Specified by:
getTimeoutin interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
setTimeout
public void setTimeout(long maxIdleTimeInMillis) throws org.apache.shiro.session.InvalidSessionException - Specified by:
setTimeoutin interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
setHost
-
getHost
-
touch
- Specified by:
touchin interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
stop
- Specified by:
stopin interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
getAttributeKeys
public Collection<Object> getAttributeKeys() throws org.apache.shiro.session.InvalidSessionException- Specified by:
getAttributeKeysin interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
getAttribute
- Specified by:
getAttributein interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
setAttribute
public void setAttribute(Object key, Object value) throws org.apache.shiro.session.InvalidSessionException - Specified by:
setAttributein interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.apache.shiro.session.Session- Throws:
org.apache.shiro.session.InvalidSessionException
-