public class SessionPoolManager
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
protected static java.lang.String |
addSessionIDInfor(SessionProvider sessionIDInfor)
将sessionID -> SessionIDInfor放进sessionIDMap中
|
static void |
closeAllSession()
关闭所有session,只在服务器要宕机等严重情况下调用
|
static void |
closeSession(java.lang.String sessionID)
关掉Session
|
static void |
generateSessionID_checkPromptRegisted(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
判断是否显示提示购买的页面
|
static boolean |
generateSessionID_checkReg(javax.servlet.http.HttpServletRequest req)
判断是否需要提示注册
|
static boolean |
generateSessionID_isPromptRegisted(javax.servlet.http.HttpServletRequest req)
已过时。
generateSessionID_checkPromptRegisted将使用同一报错处理
|
static java.lang.String |
generateSessionID(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
Weblet weblet)
p:读取reportlet,产生SessionID和SessionIDInfo, 返回SessionID.
|
static java.lang.String |
generateSessionIDWithCheckRegister(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
构建报表, 产生sessionID
|
static <T extends SessionProvider> |
getAllSession(java.lang.Class<T> clazz)
获取指定类型的Session集合
|
static StateHubService |
getClusterService() |
static java.lang.String |
getOrGenerateSessionIDWithCheckRegister(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
获取Request中的sessionID, 如果不存在, 则构建报表, 产生sessionID
|
static <T extends SessionProvider> |
getSessionIDInfor(java.lang.String sessionID,
java.lang.Class<T> clazz) |
static boolean |
hasSessionID(java.lang.String sessionID)
alex:判断某sessionID是否存在
|
static void |
responseSessionID(java.lang.String sessionID,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
返回sessionID
|
static void |
updateSessionID(java.lang.String sessionID)
alex:更新sessionID对应的SessionIDInfor的最新时间
|
static void |
writeRegistrationDiv(javax.servlet.http.HttpServletRequest req,
java.io.PrintWriter writer)
是否要在报表页面的左下角写下提示购买的div
|
public static java.lang.String getOrGenerateSessionIDWithCheckRegister(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- HTTP请求res
- HTTP答复java.lang.Exception
public static java.lang.String generateSessionIDWithCheckRegister(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- HTTP请求res
- HTTP答复java.lang.Exception
public static java.lang.String generateSessionID(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, Weblet weblet) throws java.lang.Exception
req
- HTTP请求res
- HTTP答复weblet
- 报表java.lang.Exception
public static boolean generateSessionID_isPromptRegisted(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
req
- 请求java.lang.Exception
public static void generateSessionID_checkPromptRegisted(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- 请求java.lang.Exception
public static boolean generateSessionID_checkReg(javax.servlet.http.HttpServletRequest req)
req
- HTTP请求public static void writeRegistrationDiv(javax.servlet.http.HttpServletRequest req, java.io.PrintWriter writer)
req
- HTTP请求writer
- 输出流protected static java.lang.String addSessionIDInfor(SessionProvider sessionIDInfor) throws java.lang.Exception
sessionIDInfor
- sessionID 对应的SessionIDInforjava.lang.Exception
public static void closeSession(java.lang.String sessionID)
sessionID
- 报表sessionpublic static void closeAllSession()
public static void responseSessionID(java.lang.String sessionID, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
sessionID
- session的IDres
- HTTP答复java.lang.Exception
public static void updateSessionID(java.lang.String sessionID)
sessionID
- 报表sessionpublic static <T extends SessionProvider> T getSessionIDInfor(java.lang.String sessionID, java.lang.Class<T> clazz)
public static boolean hasSessionID(java.lang.String sessionID)
sessionID
- 报表sessionpublic static <T extends SessionProvider> java.util.List<T> getAllSession(java.lang.Class<T> clazz)
T
- 类型clazz
- 类型public static StateHubService getClusterService()