public class

ApplePushCloudConnector

extends Object
java.lang.Object
   ↳ org.mule.modules.applepush.ApplePushCloudConnector
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Mule Connector for Apple Push

Apple Push Notification service (APNs for short) is the centerpiece of the push notifications feature. It is a robust and highly efficient service for propagating information to devices such as iPhone, iPad, and iPod touch devices. Each device establishes an accredited and encrypted IP connection with the service and receives notifications over this persistent connection. If a notification for an application arrives when that application is not running, the device alerts the user that the application has data waiting for it.

Software developers (“providers”) originate the notifications in their server software. The provider connects with APNs through a persistent and secure channel while monitoring incoming data intended for their client applications. When new data for an application arrives, the provider prepares and sends a notification through the channel to APNs, which pushes the notification to the target device.

Summary

Fields
private String host Hostname of Apple's Push Notification Gateway
private String keystore Filename of the keystore which contains the SSL certificate.
private String keystorePassword Password of the keystore
private int port Port number of Apple's Push Notification Gateway
Public Constructors
ApplePushCloudConnector()
Public Methods
String getHost()
String getKeystore()
String getKeystorePassword()
int getPort()
void send(String deviceToken, String alert, String sound, int badge, Map<String, String> fields)
Sends a push notification with the provided information to the iPhone identified by deviceToken.
void setHost(String host)
void setKeystore(String keystore)
void setKeystorePassword(String keystorePassword)
void setPort(int port)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String host

Hostname of Apple's Push Notification Gateway

private String keystore

Filename of the keystore which contains the SSL certificate. The file needs be available on the classpath and must be of PKCS #12 format.

private String keystorePassword

Password of the keystore

private int port

Port number of Apple's Push Notification Gateway

Public Constructors

public ApplePushCloudConnector ()

Public Methods

public String getHost ()

public String getKeystore ()

public String getKeystorePassword ()

public int getPort ()

public void send (String deviceToken, String alert, String sound, int badge, Map<String, String> fields)

Sends a push notification with the provided information to the iPhone identified by deviceToken.

Parameters
deviceToken The device token of the iPhone to which this notification is intended
alert The alert body of the notification
sound The name of a sound file in the application bundle. The sound in this file is played as an alert. If the sound file doesn’t exist or default is specified as the value, the default alert sound is played.
badge The number to display as the badge of the application icon. If this Configurable is absent, any badge number currently shown is removed.
fields Application-specific custom fields. These values are presented to the application and the iOS doesn't display them automatically.

public void setHost (String host)

Parameters
host

public void setKeystore (String keystore)

Parameters
keystore

public void setKeystorePassword (String keystorePassword)

Parameters
keystorePassword

public void setPort (int port)

Parameters
port