Package org.chenile.core.context
Class HeaderUtils
java.lang.Object
org.chenile.core.context.HeaderUtils
Defines all the header names in one place.
Supports Convenience methods that avoid the need for using header names everywhere
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Keeps track of the original entry point (HTTP, MQTT etc.) of Chenile.static final String
static final String
If the output must be logged.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static String
static String
getAppType
(Map<String, Object> headers) static String
getBatchId
(Map<String, Object> headers) static String
getChannel
(Map<String, Object> headers) static String
getDeviceId
(Map<String, Object> headers) static String
getEmployeeId
(Map<String, Object> headers) static String
getEntryPoint
(Map<String, Object> headers) static String
getGroupId
(Map<String, Object> headers) static String
static String
static String
getTenantType
(Map<String, Object> headers) static String
getTrajectoryId
(Map<String, Object> headers) static String
getUserAgent
(Map<String, Object> headers) static String
static void
setAppType
(Map<String, Object> headers, String appType) static void
setBatchId
(Map<String, Object> headers, String batchId) static void
setChannel
(Map<String, Object> headers, String channel) static void
setDeviceId
(Map<String, Object> headers, String deviceId) static void
setEmployeeId
(Map<String, Object> headers, String empId) static void
setEntryPoint
(Map<String, Object> headers, String entryPoint) static void
setGroupId
(Map<String, Object> headers, String groupId) static void
static void
static void
setTenantType
(Map<String, Object> headers, String tenantType) static void
setTrajectoryId
(Map<String, Object> headers, String trajectoryId) static void
setUserAgent
(Map<String, Object> headers, String userAgent) static void
-
Field Details
-
REGION_ID_KEY
- See Also:
-
TENANT_ID_KEY
- See Also:
-
USER_ID_KEY
- See Also:
-
EMPLOYEE_ID_KEY
- See Also:
-
GROUP_ID_KEY
- See Also:
-
APP_TYPE_KEY
- See Also:
-
USER_AGENT_KEY
- See Also:
-
BATCH_ID
- See Also:
-
DEVICE_ID
- See Also:
-
TENANT_TYPE
- See Also:
-
CHANNEL
- See Also:
-
REQUEST_ID
- See Also:
-
TEST_MODE
- See Also:
-
ENTRY_POINT
Keeps track of the original entry point (HTTP, MQTT etc.) of Chenile.- See Also:
-
TRAJECTORY_ID
- See Also:
-
MOCK_HEADER
- See Also:
-
LOG_OUTPUT
If the output must be logged.- See Also:
-
-
Constructor Details
-
HeaderUtils
public HeaderUtils()
-
-
Method Details
-
convertToString
-
getRegion
-
getTenant
-
getUserId
-
getEmployeeId
-
getGroupId
-
getAppType
-
getUserAgent
-
getDeviceId
-
getBatchId
-
getTenantType
-
getChannel
-
getEntryPoint
-
getTrajectoryId
-
setRegion
-
setTenant
-
setUserId
-
setEmployeeId
-
setGroupId
-
setAppType
-
setUserAgent
-
setDeviceId
-
setBatchId
-
setTenantType
-
setChannel
-
setEntryPoint
-
setTrajectoryId
-