public class ITKMessageSenderImpl extends Object implements ITKMessageSender
Constructor and Description |
---|
ITKMessageSenderImpl()
Instantiates a new iTK message sender impl.
|
Modifier and Type | Method and Description |
---|---|
void |
send(ITKMessage request)
Operation that allows a business payload to be sent to the
destination service/system with no response expected (a.k.a.
|
void |
sendAsync(ITKMessage request)
Operation that allows a business payload to be sent asynchronously to the
destination service/system.
|
ITKMessage |
sendSync(ITKMessage request)
Operation that allows a business payload to be sent synchronously to the
destination service/system returning the appropriate business response.
|
public ITKMessageSenderImpl()
public void send(ITKMessage request) throws ITKMessagingException
ITKMessageSender
send
in interface ITKMessageSender
request
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is null/blank or if there is a
technical exception invoking the service provider,
first node in the distribution (for instance if a SOAP
fault is returned by the service provider)public ITKMessage sendSync(ITKMessage request) throws ITKMessagingException
ITKMessageSender
sendSync
in interface ITKMessageSender
request
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is null/blank or if there is a
technical exception invoking the service provider (for instance if a SOAP
fault is returned by the service provider)public void sendAsync(ITKMessage request) throws ITKMessagingException
ITKMessageSender
ITKCallbackHandler.onMessage(ITKMessage)
sendAsync
in interface ITKMessageSender
request
- This is the business payload being sent which
must include an appropriately populated ITKMessageProperties
.ITKMessagingException
- If the addressing and message meta-data
properties are not populated, the ITKMessage.getFullPayload()
is
null/blank or if there is a technical exception invoking the service provider
such as underlying transport errors or timeouts (for instance if a SOAP fault
is returned synchronously by the service provider)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