public abstract class BaseServerController extends BaseJpomController
Modifier and Type | Field and Description |
---|---|
static String |
NODE_ID |
protected NodeService |
nodeService |
Constructor and Description |
---|
BaseServerController() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkCron(String cron)
验证 cron 表达式, demo 账号不能开启 cron
|
protected NodeModel |
getNode() |
protected UserModel |
getUser() |
static UserModel |
getUserByThreadLocal()
从线程 缓存中获取 用户信息
|
static UserModel |
getUserModel() |
static void |
removeAll() |
static void |
removeEmpty()
只清理 是 empty 对象
|
void |
resetInfo() |
static void |
resetInfo(UserModel userModel)
为线程设置 用户
|
protected NodeModel |
tryGetNode() |
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public static final String NODE_ID
protected NodeService nodeService
protected NodeModel getNode()
protected NodeModel tryGetNode()
protected String checkCron(String cron)
cron
- cronpublic void resetInfo()
resetInfo
in class cn.jiangzeyin.controller.base.AbstractController
public static void resetInfo(UserModel userModel)
userModel
- 用户protected UserModel getUser()
public static UserModel getUserByThreadLocal()
public static void removeAll()
public static void removeEmpty()
public static UserModel getUserModel()
Copyright © 2017–2022. All rights reserved.