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:0412 [2023/04/05 06:28] – ↷ Links adapted because of a move operation sean | docs:3500:0400:0410:0412 [2025/06/12 04:00] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | + | {{tag> |
| [< | [< | ||
| ==== Writing a Source ==== | ==== Writing a Source ==== | ||
| Line 20: | Line 20: | ||
| - For listening Source - <code java> | - For listening Source - <code java> | ||
| throws IbafException</ | throws IbafException</ | ||
| - | - For call-back Source – You will need to implement the third party call-back method. This method should call the following method when it has some DataObject’s to process:< | + | - For call-back Source – You will need to implement the third party call-back method. This method should call the following method when it has some DataObject’s to process:< |
| - You should implement the following method to perform any necessary "start up", such as establishing connections, | - You should implement the following method to perform any necessary "start up", such as establishing connections, | ||
| throws IbafException</ | throws IbafException</ | ||
| Line 26: | Line 26: | ||
| throws IbafException</ | throws IbafException</ | ||
| - | As an example you can see the code snippet that implements the Source that handles e-mails coming to a mailbox and sends them as notifications to //**Aware IM**//. Note that this code is for illustration purposes only and certain details are omitted. | + | As an example you can see the code snippet that implements the Source that handles e-mails coming to a mailbox and sends them as notifications to //**AwareIM**//. Note that this code is for illustration purposes only and certain details are omitted. |
| <code java> | <code java> | ||
| Line 168: | Line 168: | ||
| MessageBuildermb = new MessageBuilder(); | MessageBuildermb = new MessageBuilder(); | ||
| DataObject[]dobs=mb.addNotification( null ,notif); | DataObject[]dobs=mb.addNotification( null ,notif); | ||
| - | // send the data objects to Aware IM! | + | // send the data objects to AwareIM! |
| sourceProcess(dobs); | sourceProcess(dobs); | ||
| } | } | ||