public class EngineRequestContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_KEY_AUTHENTICATION |
static String |
ATTRIBUTE_KEY_SESSION_TOKEN |
Constructor and Description |
---|
EngineRequestContext() |
Modifier and Type | Method and Description |
---|---|
static void |
clean() |
protected static Object |
get(String key) |
static LCUser |
getAuthenticatedUser()
get authenticated user of current request.
|
static Map<String,Object> |
getMeta()
Deprecated.
|
static String |
getRemoteAddress()
获取发起请求的 IP 地址
|
static String |
getSessionToken()
get authenticated user's session token of current request.
|
static List<String> |
getUpdateKeys()
在 beforeUpdate 函数中调用可以查看 avobject 的哪些属性被更新了
|
protected static void |
parseMetaData(Map<String,Object> objectProperties) |
protected static void |
put(String key,
Object value) |
static void |
setAuthenticatedUser(LCUser currentUser)
set current authenticated user.
|
protected static void |
setRemoteAddress(String ip) |
static void |
setSessionToken(String sessionToken) |
public static final String ATTRIBUTE_KEY_AUTHENTICATION
public static final String ATTRIBUTE_KEY_SESSION_TOKEN
@Deprecated public static Map<String,Object> getMeta()
public static List<String> getUpdateKeys()
public static String getRemoteAddress()
protected static void setRemoteAddress(String ip)
public static void setSessionToken(String sessionToken)
public static String getSessionToken()
public static void setAuthenticatedUser(LCUser currentUser)
currentUser
- current user.public static LCUser getAuthenticatedUser()
public static void clean()
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.