- getApnsGatewayHost() - Method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns the host name of the APNs gateway in this environment.
- getApnsGatewayPort() - Method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns the TCP port for the APNs gateway in this environment.
- getByErrorCode(byte) - Static method in enum com.relayrides.pushy.apns.RejectedNotificationReason
-
Gets the rejection reason associated with the given error code.
- getCloseAfterInactivityTime() - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Returns the time, in seconds, between the sending of the last push notification and connection closure.
- getConcurrentConnectionCount() - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Returns the number of concurrent connections to be maintained by push managers created with this configuration.
- getConnectionConfiguration() - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Returns the configuration to be used for connections created by push managers created with this configuration.
- getDeliveryInvalidationTime() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns the time at which Apple's push notification service should stop trying to deliver this push notification.
- getDeliveryInvalidationTime() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the time at which this push notification is no longer valid and should no longer be delivered.
- getErrorCode() - Method in enum com.relayrides.pushy.apns.RejectedNotificationReason
-
Returns the one-byte error code associated with this rejection reason.
- getExpiration() - Method in class com.relayrides.pushy.apns.ExpiredToken
-
Returns the time, rounded to the nearest second, when APNs determined that the application no longer exists on
the device.
- getFeedbackConnectionConfiguration() - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Returns the configuration to be used for connections to the APNs feedback service created by push managers with
this configuration.
- getFeedbackHost() - Method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns the host name of the APNs feedback service in this environment.
- getFeedbackPort() - Method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns the TCP port for the APNs feedback service in this environment.
- getGracefulShutdownTimeout() - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Returns the time, in seconds, after which a graceful shutdown attempt should be abandoned and the connection
should be closed immediately.
- getName() - Method in class com.relayrides.pushy.apns.PushManager
-
Returns the human-readable name of this push manager.
- getPayload() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns the JSON-encoded payload of this push notification.
- getPayload() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the payload to include in this push notification.
- getPriority() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns the priority with which this push notification should be sent to the receiving device.
- getPriority() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the priority with which this push notification should be delivered to the receiving device.
- getProductionEnvironment() - Static method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns an APNs environment for connecting to Apple's production servers.
- getQueue() - Method in class com.relayrides.pushy.apns.PushManager
-
Returns the queue of messages to be sent to the APNs gateway.
- getReadTimeout() - Method in class com.relayrides.pushy.apns.FeedbackConnectionConfiguration
-
Returns the time, in seconds, after which this connection will be closed if no new expired tokens have been
received.
- getSandboxEnvironment() - Static method in class com.relayrides.pushy.apns.ApnsEnvironment
-
Returns an APNs environment for connecting to Apple's sandbox servers.
- getSendAttemptLimit() - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Returns the number of notifications a connection may attempt to send before shutting down.
- getSentNotificationBufferCapacity() - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Returns the sent notification buffer capacity for connections created with this configuration.
- getToken() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns the token of the device to which this push notification is to be sent.
- getToken() - Method in class com.relayrides.pushy.apns.ExpiredToken
-
Returns the token APNs has reported as expired.
- getToken() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the token of the device to which this push notification should be delivered.
- sendNotification(T) - Method in class com.relayrides.pushy.apns.ApnsConnection
-
Asynchronously sends a push notification to the connected APNs gateway.
- setAlertBody(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the literal text of the alert message to be shown for the push notification.
- setAlertTitle(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets a short description of the notification purpose.
- setBadgeNumber(Integer) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the number to display as the badge of the icon of the application that receives the push notification.
- setCategoryName(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the name of the action category name for interactive remote notifications.
- setCloseAfterInactivityTime(Integer) - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Sets the time, in seconds, between the sending of the last push notification and connection closure.
- setConcurrentConnectionCount(int) - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Sets the number of concurrent connections to be maintained by push managers created with this configuration.
- setConnectionConfiguration(ApnsConnectionConfiguration) - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Sets the configuration to be used for connections created by push managers created with this configuration.
- setContentAvailable(boolean) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets whether the payload under construction should contain a flag that indicates that new content is available
to be downloaded in the background by the receiving app.
- setFeedbackConnectionConfiguration(FeedbackConnectionConfiguration) - Method in class com.relayrides.pushy.apns.PushManagerConfiguration
-
Sets the configuration to be used for connections to the APNs feedback service created by push managers with
this configuration.
- setGracefulShutdownTimeout(Integer) - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Sets the time, in seconds, after which a graceful shutdown attempt should be abandoned and the connection should
be closed immediately.
- setLaunchImageFileName(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the image to be shown when the receiving app launches in response to this push notification.
- setLocalizedActionButtonKey(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the key of a string in the receiving app's localized string list to be used as the label of the
"action" button if the push notification is displayed as an alert.
- setLocalizedAlertMessage(String, String[]) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the key of a message in the receiving app's localized string list to be shown for the push notification.
- setLocalizedAlertTitle(String, String[]) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the key of the title string in the receiving app's localized string list to be shown for the push notification.
- setReadTimeout(int) - Method in class com.relayrides.pushy.apns.FeedbackConnectionConfiguration
-
Sets the time, in seconds, after which this connection will be closed if no new expired tokens have been
received.
- setSendAttemptLimit(Integer) - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Sets the number of notifications a connection may attempt to send before shutting down.
- setSentNotificationBufferCapacity(int) - Method in class com.relayrides.pushy.apns.ApnsConnectionConfiguration
-
Sets the sent notification buffer capacity for connections created with this configuration.
- setShowActionButton(boolean) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets whether an "action" button should be shown if the push notification is displayed as an alert.
- setSoundFileName(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the name of the sound file to play when the push notification is received.
- shutdown() - Method in class com.relayrides.pushy.apns.PushManager
-
Disconnects from APNs and gracefully shuts down all connections.
- shutdown(long) - Method in class com.relayrides.pushy.apns.PushManager
-
Disconnects from the APNs and gracefully shuts down all connections.
- shutdownGracefully() - Method in class com.relayrides.pushy.apns.ApnsConnection
-
Gracefully and asynchronously shuts down this connection.
- shutdownImmediately() - Method in class com.relayrides.pushy.apns.ApnsConnection
-
Immediately closes this connection (assuming it was ever open).
- shutdownImmediately() - Method in class com.relayrides.pushy.apns.FeedbackServiceConnection
-
Closes this feedback connection as soon as possible.
- SimpleApnsPushNotification - Class in com.relayrides.pushy.apns.util
-
- SimpleApnsPushNotification(byte[], String) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token and payload.
- SimpleApnsPushNotification(byte[], String, Date) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, payload, and expiration time.
- SimpleApnsPushNotification(byte[], String, DeliveryPriority) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, payload, and delivery priority.
- SimpleApnsPushNotification(byte[], String, Date, DeliveryPriority) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, payload, delivery expiration time, and delivery
priority.
- SSLContextUtil - Class in com.relayrides.pushy.apns.util
-
A utility class for creating SSL contexts for use with a
PushManager
.
- SSLContextUtil() - Constructor for class com.relayrides.pushy.apns.util.SSLContextUtil
-
- start() - Method in class com.relayrides.pushy.apns.PushManager
-
Opens all connections to APNs and prepares to send push notifications.