public class ClientRequestContext
extends java.lang.Object
AlmClientRequestContext
is the class representing a TPC client request. It is initialized by TPC client representing the current client request. TPC connector writer can utilize it to log a message that can display to TPC client end user in the connector code
AlmClientContext.addClientMessage(session, AlmMessage.SEVERITY_ERROR, "Invalid Input", "The provided value on due date is not correct. Please use correct format.");
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_REQUEST_SESSION_ID |
Constructor and Description |
---|
ClientRequestContext(java.lang.String clientRequestId)
Construct to create an ClientRequestContext instance
|
Modifier and Type | Method and Description |
---|---|
static void |
addClientMessage(java.util.Map sessionContext, AlmMessage.Severity severity, java.lang.String title, java.lang.String msg)
Utility API for adding a AlmMessage to show to end user through TPC IDE client.
|
java.lang.String |
getRequestId()
Return the requestId (which uniquely identify the current request).
|
public static final java.lang.String CLIENT_REQUEST_SESSION_ID
public ClientRequestContext(java.lang.String clientRequestId)
clientRequestId
-public java.lang.String getRequestId()
public static void addClientMessage(java.util.Map sessionContext, AlmMessage.Severity severity, java.lang.String title, java.lang.String msg)
sessionContext
-severity
-title
-msg
-