public class HttpServletSession extends Objectimplements 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.
| Constructor and Description |
|---|
HttpServletSession(HttpSession httpSession, String
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(Object
|
Collection |
getAttributeKeys()
|
String |
getHost()
|
Serializable |
getId()
|
Date |
getLastAccessTime()
|
Date |
getStartTimestamp()
|
long |
getTimeout()
|
Object |
removeAttribute(Object
|
void |
setAttribute(Object
|
protected void |
setHost(String
|
void |
setTimeout(long maxIdleTimeInMillis)
|
void |
stop()
|
void |
touch()
|
public HttpServletSession(HttpSession httpSession,
String host) public SerializablegetId()
public DategetStartTimestamp()
public DategetLastAccessTime()
public long getTimeout()
throws InvalidSessionException
getTimeout in interface
Session
InvalidSessionException
public void setTimeout(long maxIdleTimeInMillis)
throws InvalidSessionException
setTimeout in interface
Session
InvalidSessionException
protected void setHost(Stringhost)
public StringgetHost()
public void touch()
throws InvalidSessionException
touch in interface
Session
InvalidSessionException
public void stop()
throws InvalidSessionException
stop in interface
Session
InvalidSessionException
public Collection<Object > getAttributeKeys() throws InvalidSessionException
getAttributeKeys in interface
Session
InvalidSessionException
public ObjectgetAttribute(Object key) throws InvalidSessionException
getAttribute in interface
Session
InvalidSessionException
public void setAttribute(Objectkey, Object value) throws InvalidSessionException
setAttribute in interface
Session
InvalidSessionException
public ObjectremoveAttribute(Object key) throws InvalidSessionException
removeAttribute in interface
Session
InvalidSessionException