Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:3500:0400:0410:0412 [2023/04/06 04:42] seandocs:3500:0400:0410:0412 [2025/06/12 04:00] (current) – Change to AwareIM aware_support3
Line 20: Line 20:
     - For listening Source - <code java>public void sourceListen()      - For listening Source - <code java>public void sourceListen() 
 throws IbafException</code> This method should call the following method when it has some ''DataObjects'' to process:<code java>sourceProcess(DataObject[] dobs)</code> throws IbafException</code> This method should call the following method when it has some ''DataObjects'' to process:<code java>sourceProcess(DataObject[] dobs)</code>
-    - 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:<code java>sourceProcess(DataObject[] dobs)</code> In the methods above you need to construct the appropriate ''DataObjects'', which will be delivered to //**Aware IM**// by the framework. To construct the DataObject’s you can use the [[docs:3500:0400:0410:0415|MessageBuilder]] class as shown in the example below.+    - 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:<code java>sourceProcess(DataObject[] dobs)</code> In the methods above you need to construct the appropriate ''DataObjects'', which will be delivered to //**AwareIM**// by the framework. To construct the DataObject’s you can use the [[docs:3500:0400:0410:0415|MessageBuilder]] class as shown in the example below.
   - You should implement the following method to perform any necessary "start up", such as establishing connections, registering call-backs, etc: <code java> public void sourceStartUp()    - You should implement the following method to perform any necessary "start up", such as establishing connections, registering call-backs, etc: <code java> public void sourceStartUp() 
 throws IbafException</code> throws IbafException</code>
Line 26: Line 26:
 throws IbafException</code> throws IbafException</code>
  
-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>public  class EmailSource extends AbstractSimpleSource <code java>public  class EmailSource extends AbstractSimpleSource
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);
     }     }
  • Last modified: 2023/04/06 04:42