feat: 主机消息处理器.
This commit is contained in:
@@ -13,6 +13,8 @@ public interface ExtraFieldConst extends FieldConst {
|
||||
|
||||
String TRACE_ID = "traceId";
|
||||
|
||||
String IDENTITY = "identity";
|
||||
|
||||
String GROUP_NAME = "groupName";
|
||||
|
||||
String ID_LIST = "idList";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.orion.ops.framework.common.utils;
|
||||
|
||||
import com.orion.ops.framework.common.entity.RequestIdentity;
|
||||
import com.orion.ops.framework.common.entity.RequestIdentityModel;
|
||||
import com.orion.web.servlet.web.Servlets;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
@@ -19,6 +20,17 @@ public class Requests {
|
||||
private Requests() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取请求留痕信息
|
||||
*
|
||||
* @return model
|
||||
*/
|
||||
public static RequestIdentityModel getIdentity() {
|
||||
RequestIdentityModel model = new RequestIdentityModel();
|
||||
fillIdentity(model);
|
||||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* 填充请求留痕信息
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user