public interface ITKCallbackHandler
Modifier and Type | Method and Description |
---|---|
void |
onAck(ITKAckDetails ack)
Method invoked by the transport and distribution layer
upon receipt of a positive infrastructure acknowledgement (Ack).
Application components are not required to provide any functionality that is triggered by this acknowledgement however it is anticipated that this could be used to implement "delivery receipt" functionality. |
void |
onMessage(ITKMessage response)
Allows the transport and distribution infrastructure
to pass back an asynchronous response received in
response to an asynchronous request.
The response message may be a generic ITK Business Acknowledgement (for instance as a result of a sendCDA
invocation) or a specific business response associated
with the request message.Note: It is the responsibility of the application to maintain state and do the necessary correlation of this message against the original request to complete the transaction. |
void |
onNack(ITKAckDetails ack)
Method invoked by the transport and distribution layer
upon receipt of a negative infrastructure acknowledgement (Nack).
Application components are not required to provide any functionality that is triggered by this acknowledgement however it is anticipated that this could be used to implement "delivery failure" functionality. |
@Requirement(traceTo="WS-PAT-02") void onMessage(ITKMessage response)
sendCDA
invocation) or a specific business response associated
with the request message.response
- The ITKMessage
representing the response@Requirement(traceTo="WS-PAT-02") void onAck(ITKAckDetails ack)
ack
- The (positive) acknowledgement. This can be correlated
back to the request via the ITKAckDetails.getTrackingRef()
method. Note correlation is an application layer responsibility.@Requirement(traceTo="WS-PAT-02") void onNack(ITKAckDetails ack)
ack
- The (negative) acknowledgement. This can be correlated
back to the request via the ITKAckDetails.getTrackingRef()
method. Note correlation is an application layer responsibility. Details
of the error associated with the "delivery failure" can be retrieved via
the ITKAckDetails.getNackError()
method.All content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated