Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:3500:0400:0410:0413 [2023/04/05 06:25] – ↷ Page moved and renamed from docs:3500:0400:0410_implementing_channel_s_source_and_sink:0413_handling_replies_to_service_requests to docs:3500:0400:0410:0413 sean | docs:3500:0400:0410:0413 [2025/06/12 04:00] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Handling replies to service requests ==== | ==== Handling replies to service requests ==== | ||
| - | When a service of the external party or //**Aware IM**// has been requested the service provider may send a reply. The reply is sent as a special notification (called the //service reply notification// | + | When a service of the external party or //**AwareIM**// has been requested the service provider may send a reply. The reply is sent as a special notification (called the //service reply notification// |
| - | If //**Aware IM**// requests services of external parties, replies from the external parties need to be delivered back to //**Aware IM**//. Rather than write the Source that would do this it is possible to use the special version of a Sink that would not only deliver service requests to the external party but also send the immediate replies back to //**Aware IM**//. | + | If //**AwareIM**// requests services of external parties, replies from the external parties need to be delivered back to //**AwareIM**//. Rather than write the Source that would do this it is possible to use the special version of a Sink that would not only deliver service requests to the external party but also send the immediate replies back to //**AwareIM**//. |
| - | Rather than extending '' | + | Rather than extending '' |
| The message fed to the source must contain the service reply notification. The service reply notification can be constructed calling the static method | The message fed to the source must contain the service reply notification. The service reply notification can be constructed calling the static method | ||
| Line 21: | Line 21: | ||
| // call the service here | // call the service here | ||
| // … | // … | ||
| - | // construct service reply notification and feed it back to Aware IM | + | // construct service reply notification and feed it back to AwareIM |
| INotification serviceReply = DomainFactory.createServiceReplyNotification (null, INotification.SERVICE_STATUS_SUCCESS, | INotification serviceReply = DomainFactory.createServiceReplyNotification (null, INotification.SERVICE_STATUS_SUCCESS, | ||
| MessageBuilder mb = new MessageBuilder (); | MessageBuilder mb = new MessageBuilder (); | ||