public class AppSession extends Object
| 构造器和说明 |
|---|
AppSession(javax.servlet.http.HttpSession session,
Application application) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doLogin(UserBean user) |
void |
doLogout() |
Object |
get(String key) |
Application |
getApplication() |
com.alibaba.fastjson.JSONObject |
getCache() |
javax.servlet.http.HttpSession |
getSession() |
static String |
getTimestampKey(CacheEntity cache) |
UserBean |
getUser() |
boolean |
isCached(CacheEntity cache) |
boolean |
isLogin() |
void |
removeCached(CacheEntity cache) |
void |
set(String key,
Object value) |
void |
setCached(CacheEntity cache) |
public AppSession(javax.servlet.http.HttpSession session,
Application application)
public javax.servlet.http.HttpSession getSession()
public boolean isLogin()
public void doLogin(UserBean user)
public void doLogout()
public UserBean getUser()
public Application getApplication()
public com.alibaba.fastjson.JSONObject getCache()
public static String getTimestampKey(CacheEntity cache)
public boolean isCached(CacheEntity cache)
public void setCached(CacheEntity cache)
public void removeCached(CacheEntity cache)
Copyright © 2018. All rights reserved.