| 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
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
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
private
int
port
Port number of Apple's Push Notification Gateway
Public Constructors
public
ApplePushCloudConnector
()
Public Methods
public
String
getKeystore
()
public
String
getKeystorePassword
()
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)
public
void
setKeystore
(String keystore)
public
void
setKeystorePassword
(String keystorePassword)
public
void
setPort
(int port)