public abstract class AbstractSessionProvider extends Object implements SessionProvider
限定符和类型 | 类和说明 |
---|---|
class |
AbstractSessionProvider.SessionProviderHttpServletRequestWrapper |
构造器和说明 |
---|
AbstractSessionProvider() |
限定符和类型 | 方法和说明 |
---|---|
abstract javax.servlet.http.HttpSession |
createSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.ServletContext servletContext)
子类覆盖此方法,以创建一个新的Session对象,或者任何你想做的事
|
javax.servlet.http.HttpServletRequest |
filter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.ServletContext servletContext)
过滤一个请求,返回被改造过的req对象.
|
abstract javax.servlet.http.HttpSession |
getExistSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.ServletContext servletContext) |
void |
notifyStop()
web容器销毁(stop/shutdown)时调用的通知方法
|
public javax.servlet.http.HttpServletRequest filter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext servletContext)
SessionProvider
filter
在接口中 SessionProvider
public abstract javax.servlet.http.HttpSession createSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext servletContext)
public abstract javax.servlet.http.HttpSession getExistSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletContext servletContext)
public void notifyStop()
SessionProvider
notifyStop
在接口中 SessionProvider
Copyright © 2017. All rights reserved.