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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringKeeps track of the original entry point (HTTP, MQTT etc.) of Chenile.static final Stringstatic final StringIf the output must be logged.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringstatic StringgetAppType(Map<String, Object> headers) static StringgetBatchId(Map<String, Object> headers) static StringgetChannel(Map<String, Object> headers) static StringgetDeviceId(Map<String, Object> headers) static StringgetEmployeeId(Map<String, Object> headers) static StringgetEntryPoint(Map<String, Object> headers) static StringgetGroupId(Map<String, Object> headers) static Stringstatic Stringstatic StringgetTenantType(Map<String, Object> headers) static StringgetTrajectoryId(Map<String, Object> headers) static StringgetUserAgent(Map<String, Object> headers) static Stringstatic voidsetAppType(Map<String, Object> headers, String appType) static voidsetBatchId(Map<String, Object> headers, String batchId) static voidsetChannel(Map<String, Object> headers, String channel) static voidsetDeviceId(Map<String, Object> headers, String deviceId) static voidsetEmployeeId(Map<String, Object> headers, String empId) static voidsetEntryPoint(Map<String, Object> headers, String entryPoint) static voidsetGroupId(Map<String, Object> headers, String groupId) static voidstatic voidstatic voidsetTenantType(Map<String, Object> headers, String tenantType) static voidsetTrajectoryId(Map<String, Object> headers, String trajectoryId) static voidsetUserAgent(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:
-
AUTH_USER_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:
-
AUTH_TOKEN_HEADER
- See Also:
-
AUTH_X_TOKEN_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
-