| Package | Description |
|---|---|
| javapns |
The JavaPNS library
|
| javapns.communication |
Classes for communicating with Apple servers.
|
| javapns.communication.exceptions |
Communication-related exceptions thrown by the javapns library.
|
| javapns.feedback |
Classes for interacting with the Apple Feedback Service.
|
| javapns.notification |
Classes for pushing notifications through Apple servers.
|
| Modifier and Type | Method and Description |
|---|---|
static PushedNotifications |
Push.alert(String message,
Object keystore,
String password,
boolean production,
Object devices)
Push a simple alert to one or more devices.
|
static PushedNotifications |
Push.badge(int badge,
Object keystore,
String password,
boolean production,
Object devices)
Push a simple badge number to one or more devices.
|
static PushedNotifications |
Push.combined(String message,
int badge,
String sound,
Object keystore,
String password,
boolean production,
Object devices)
Push a notification combining an alert, a badge and a sound.
|
static PushedNotifications |
Push.contentAvailable(Object keystore,
String password,
boolean production,
Object devices)
Push a content-available notification for Newsstand.
|
static List<Device> |
Push.feedback(Object keystore,
String password,
boolean production)
Retrieve a list of devices that should be removed from future notification lists.
|
static PushedNotifications |
Push.payload(Payload payload,
Object keystore,
String password,
boolean production,
Object devices)
Push a preformatted payload to a list of devices.
|
static PushedNotifications |
Push.payloads(Object keystore,
String password,
boolean production,
Object payloadDevicePairs)
Push a different preformatted payload for each device.
|
static PushQueue |
Push.queue(Object keystore,
String password,
boolean production,
int numberOfThreads)
Build and start an asynchronous queue for sending notifications later without opening and closing connections.
|
static PushedNotifications |
Push.sound(String sound,
Object keystore,
String password,
boolean production,
Object devices)
Push a simple sound name to one or more devices.
|
static PushedNotifications |
Push.test(Object keystore,
String password,
boolean production,
Object devices)
Push a special test notification with an alert message containing useful debugging information.
|
| Modifier and Type | Method and Description |
|---|---|
SSLSocket |
ConnectionToAppleServer.getSSLSocket()
Create a SSLSocket which will be used to send data to Apple
|
static void |
KeystoreManager.verifyKeystoreContent(AppleServer server,
Object keystore)
Perform basic tests on a keystore to detect common user mistakes.
|
| Constructor and Description |
|---|
AppleServerBasicImpl(Object keystore,
String password,
String type)
Constructs a AppleServerBasicImpl object.
|
ConnectionToAppleServer(AppleServer server)
Builds a connection to an Apple server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InvalidCertificateChainException
Thrown when we try to contact Apple with an invalid keystore or certificate chain.
|
class |
InvalidKeystoreFormatException
Thrown when we try to contact Apple with an invalid keystore format.
|
class |
InvalidKeystorePasswordException
Thrown when we try to contact Apple with an invalid password for the keystore.
|
class |
InvalidKeystoreReferenceException
Thrown when we try to contact Apple with an invalid keystore format.
|
| Modifier and Type | Method and Description |
|---|---|
LinkedList<Device> |
FeedbackServiceManager.getDevices(AppleFeedbackServer server) |
| Constructor and Description |
|---|
AppleFeedbackServerBasicImpl(Object keystore,
String password,
boolean production)
Communication settings for interacting with Apple's default production or sandbox feedback server.
|
ConnectionToFeedbackServer(AppleFeedbackServer feedbackServer) |
ConnectionToFeedbackServer(AppleNotificationServer server,
KeyStore keystore) |
| Modifier and Type | Method and Description |
|---|---|
void |
PushNotificationManager.initializeConnection(AppleNotificationServer server)
Initialize a connection and create a SSLSocket
|
void |
PushNotificationManager.restartConnection(AppleNotificationServer server)
Stop and restart the current connection to the Apple server
|
PushedNotifications |
PushNotificationManager.sendNotifications(Payload payload,
Device... devices)
Send a notification to a multiple devices in a single connection and close the connection.
|
PushedNotifications |
PushNotificationManager.sendNotifications(Payload payload,
List<Device> devices)
Send a notification to a multiple devices in a single connection and close the connection.
|
void |
PushNotificationManager.stopConnection()
Read and process any pending error-responses, and then close the connection.
|
| Constructor and Description |
|---|
AppleNotificationServerBasicImpl(Object keystore,
String password,
boolean production)
Communication settings for interacting with Apple's default production or sandbox notification server.
|
ConnectionToNotificationServer(AppleNotificationServer server) |
ConnectionToNotificationServer(AppleNotificationServer server,
KeyStore keystore) |
Copyright © 2016. All rights reserved.