net.rim.pushsdk.acknowledgement
Class AcknowledgementPapServiceImpl
java.lang.Object
net.rim.pushsdk.pap.PapServiceImpl
net.rim.pushsdk.acknowledgement.AcknowledgementPapServiceImpl
- All Implemented Interfaces:
- PapService
public class AcknowledgementPapServiceImpl
- extends PapServiceImpl
Extension of the pap package PapServiceImpl to include result notification for the acknowledgement package.
The onNotification() method retrieves the push application id from the HTTP request, creates a
Notification object that is constructed based on the ResultNotification and the push application id
and passes the object to the NotificationProcessorService for further processing.
Dependencies that must be injected to properly initialize this object for use:
- httpClient
- pushSDKProperties
- notificationProcessorService
- Author:
- dstrelbytsky
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcknowledgementPapServiceImpl
public AcknowledgementPapServiceImpl()
setNotificationProcessorService
public void setNotificationProcessorService(NotificationProcessorService notificationProcessorService)
- Support for dependency injection. Inject an implementation of a
NotificationProcessorService collaborating
object - this is used to interface with the business service that processes result notifications.
- Parameters:
notificationProcessorService - an instance of a NotificationProcessorService implementation (must be thread safe)
onNotification
public void onNotification(ResultNotification resultNotification,
Map<String,String[]> notificationParameters)
throws PushSDKException
- Creates a
Notification object based on the passed in result notification, push application id and address count
(retrieved from the notification parameters).
- Specified by:
onNotification in interface PapService- Overrides:
onNotification in class PapServiceImpl
- Parameters:
resultNotification - the result notification sent by the PPGnotificationParameters - request parameters from the result notification sent by the PPG
- Throws:
PushSDKException - if the result notification cannot be processed
Copyright © 2011 Research In Motion. All Rights Reserved.