public abstract class BaseController extends Object
| 构造器和说明 |
|---|
BaseController() |
| 限定符和类型 | 方法和说明 |
|---|---|
Account |
getCurrentUser() |
String |
getCurUrl() |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
<T> T |
getSessionAttr(String key,
Class<T> clazz)
取得 session 变量值
|
String |
getSessionId() |
BaseSessionService |
getSessionService() |
String |
getSessionType()
session 类型
|
Long |
getTimeOut()
超时时间
|
void |
loadSessionId() |
void |
removeSession()
删除session
|
void |
removeSession(String key)
删除session
|
void |
removeThread() |
void |
setHttp(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setSessionAttr(String key,
Object value)
设置 session 变量
|
boolean |
userHasLogin() |
public void removeThread()
@ModelAttribute
public void setHttp(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public String getSessionId()
public void loadSessionId()
public String getSessionType()
public Long getTimeOut()
public Account getCurrentUser()
public boolean userHasLogin()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public <T> T getSessionAttr(String key, Class<T> clazz)
T - key - public BaseSessionService getSessionService()
public void removeSession(String key)
key - public void removeSession()
public String getCurUrl()
Copyright © 2021. All rights reserved.