public class ShiroHttpSession extends Object
Session under the hood for all session operations instead of the Servlet Container's session mechanism. This is required in heterogeneous client environments where the Session is used on both the business tier as well as in multiple client technologies (web, swing, flash, etc) since Servlet container sessions alone cannot support this feature.
| Modifier and Type | Field and Description |
|---|---|
protected HttpServletRequest |
currentRequest
|
static String |
DEFAULT_SESSION_ID_NAME
|
protected ServletContext |
servletContext
|
protected Session |
session
|
| Constructor and Description |
|---|
ShiroHttpSession(Session
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterBound(String
|
protected void |
afterUnbound(String
|
Object |
getAttribute(String
|
Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
protected Set |
getKeyNames()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
ServletContext |
getServletContext()
|
Session |
getSession()
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
|
Object |
getValue(String
|
String |
getValueNames()
|
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(String
|
void |
removeAttribute(String
|
void |
removeValue(String
|
void |
setAttribute(String
|
void |
setMaxInactiveInterval(int i)
|
public static final StringDEFAULT_SESSION_ID_NAME
protected ServletContext servletContext
protected HttpServletRequest currentRequest
protected Sessionsession
public ShiroHttpSession(Sessionsession, HttpServletRequest currentRequest, ServletContext servletContext)
public SessiongetSession()
public long getCreationTime()
public StringgetId()
public long getLastAccessedTime()
public ServletContext getServletContext()
public void setMaxInactiveInterval(int i)
public int getMaxInactiveInterval()
public javax.servlet.http.HttpSessionContext getSessionContext()
public EnumerationgetAttributeNames()
public String[] getValueNames()
public void removeAttribute(Strings)
public void removeValue(Strings)
public void invalidate()
public boolean isNew()