Interface ReplyHandlerContext
-
@API public interface ReplyHandlerContext
The reply handler context provides contextual information used while evaluating the reply.- Since:
- 2015.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description JobIDLocator.ID
getId()
EnoviaJob
getJob()
JobTransfer
getJobTransfer()
<T> T
getMessage()
Returns the "message" containing the data that we will evaluate the reply with.com.technia.tif.enovia.job.reply.config.Result
result()
void
setResult(boolean success, java.lang.String responseMessage)
Deprecated.void
setResult(boolean success, java.lang.String responseMessage, java.util.Map<java.lang.String,java.lang.String> responseMetaData)
Deprecated.
-
-
-
Method Detail
-
getMessage
<T> T getMessage()
Returns the "message" containing the data that we will evaluate the reply with.- Type Parameters:
T
- The type of message. Depends on the "source".- Returns:
- The message
-
getId
JobIDLocator.ID getId()
- Returns:
- The ID as obtained from the
id locator
.
-
getJobTransfer
JobTransfer getJobTransfer()
- Returns:
- The original
transfer
, which this reply was made for.
-
result
com.technia.tif.enovia.job.reply.config.Result result()
- Returns:
- The
result
instance that you can use to set the result status on.
-
setResult
@Deprecated void setResult(boolean success, java.lang.String responseMessage)
Deprecated.Use the methodresult()
to obtain theresult
instance, and populate that with proper result status.- Parameters:
success
-responseMessage
-
-
setResult
@Deprecated void setResult(boolean success, java.lang.String responseMessage, java.util.Map<java.lang.String,java.lang.String> responseMetaData)
Deprecated.Use the methodresult()
to obtain theresult
instance, and populate that with proper result status.- Parameters:
success
-responseMessage
-responseMetaData
-
-
-