public class SimpleMessageCallbackHandler extends AbstractCallbackListenerServlet implements ITKCallbackHandler
dos
Constructor and Description |
---|
SimpleMessageCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
ITKCallbackHandler |
getCallbackHandler()
Gets the callback handler.
|
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 request)
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 nack)
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. |
doPost, init
addITKWrappers, checkProfileId, checkServiceId, sendInfrastructureAck, validateDistributionEnvelope
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void onMessage(ITKMessage request)
ITKCallbackHandler
sendCDA
invocation) or a specific business response associated
with the request message.onMessage
in interface ITKCallbackHandler
request
- The ITKMessage
representing the responsepublic void onAck(ITKAckDetails ack)
ITKCallbackHandler
onAck
in interface ITKCallbackHandler
ack
- The (positive) acknowledgement. This can be correlated
back to the request via the ITKAckDetails.getTrackingRef()
method. Note correlation is an application layer responsibility.public void onNack(ITKAckDetails nack)
ITKCallbackHandler
onNack
in interface ITKCallbackHandler
nack
- 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.public ITKCallbackHandler getCallbackHandler()
AbstractCallbackListenerServlet
getCallbackHandler
in class AbstractCallbackListenerServlet
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