public final class NutSessionListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener
启用的方法是在 web.xml 中,添加下面的代码:
<listener> <listerner-class>org.nutz.mvc.NutSessionListener</listerner-class> </listener>
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
isSessionScopeEnable
如果你在 web.xml 配置了这个监听器,那么我们理解你的意图就是要自动创建 session
否则你就不需要自动创建 session。 |
| 构造器和说明 |
|---|
NutSessionListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent se) |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent se) |
public static boolean isSessionScopeEnable
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
sessionCreated 在接口中 javax.servlet.http.HttpSessionListenerpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
sessionDestroyed 在接口中 javax.servlet.http.HttpSessionListener