- addCustomProperty(String, Object) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Adds a custom property to the payload.
- ALTERNATE_APNS_PORT - Static variable in class com.relayrides.pushy.apns.ApnsClient
-
An alternative port for communication with the APNs gateway.
- ApnsClient<T extends ApnsPushNotification> - Class in com.relayrides.pushy.apns
-
An APNs client sends push notifications to the APNs gateway.
- ApnsClient(File, String) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the certificate and key from the
given PKCS#12 file.
- ApnsClient(File, String, EventLoopGroup) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the certificate and key from the
given PKCS#12 file.
- ApnsClient(InputStream, String) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the certificate and key from the
given PKCS#12 input stream.
- ApnsClient(InputStream, String, EventLoopGroup) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the certificate and key from the
given PKCS#12 input stream.
- ApnsClient(X509Certificate, PrivateKey, String) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the given certificate and
key.
- ApnsClient(X509Certificate, PrivateKey, String, EventLoopGroup) - Constructor for class com.relayrides.pushy.apns.ApnsClient
-
Creates a new APNs client that will identify itself to the APNs gateway with the given certificate and
key.
- ApnsClientMetricsListener - Interface in com.relayrides.pushy.apns
-
A metrics listener receives events from an
ApnsClient
that can be used to measure the performance and
behavior of the client.
- ApnsPayloadBuilder - Class in com.relayrides.pushy.apns.util
-
A utility class for constructing JSON payloads suitable for inclusion in APNs push notifications.
- ApnsPayloadBuilder() - Constructor for class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Constructs a new payload builder.
- ApnsPushNotification - Interface in com.relayrides.pushy.apns
-
A push notification that can be sent through the Apple Push Notification service (APNs).
- getExpiration() - 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.
- getExpiration() - 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.
- 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.
- getPushNotification() - Method in interface com.relayrides.pushy.apns.PushNotificationResponse
-
Returns the original push notification sent to the APNs gateway.
- getReconnectionFuture() - Method in class com.relayrides.pushy.apns.ApnsClient
-
Returns a Future
that will succeed when the client has re-established a connection to the APNs gateway.
- getRejectionReason() - Method in interface com.relayrides.pushy.apns.PushNotificationResponse
-
Returns the reason for rejection reported by the APNs gateway.
- 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.util.SimpleApnsPushNotification
-
Returns the token of the device to which this push notification should be delivered.
- getTokenInvalidationTimestamp() - Method in interface com.relayrides.pushy.apns.PushNotificationResponse
-
If the sent push notification was rejected because the destination token is no longer valid, returns the most
recent time at which the APNs gateway confirmed that the token is no longer valid.
- getTopic() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns the topic to which this notification should be sent.
- getTopic() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the topic to which this push notification should be sent.
- sanitizeTokenString(String) - Static method in class com.relayrides.pushy.apns.util.TokenUtil
-
Returns a "sanitized" version of the given token string suitable for sending to an APNs server.
- sendNotification(T) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sends a push notification to the 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.
- setConnectionTimeout(int) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sets the maximum amount of time, in milliseconds, that a client will wait to establish a connection with the
APNs server before the connection attempt is considered a failure.
- 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.
- setGracefulShutdownTimeout(long) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sets the amount of time (in milliseconds) clients should wait for in-progress requests to complete before closing
a connection during a graceful shutdown.
- 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.
- setMetricsListener(ApnsClientMetricsListener) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sets the metrics listener for this client.
- setProxyHandlerFactory(ProxyHandlerFactory) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sets the proxy handler factory to be used to construct proxy handlers when establishing a new connection to the
APNs gateway.
- 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.
- setWriteTimeout(long) - Method in class com.relayrides.pushy.apns.ApnsClient
-
Sets the write timeout for this client.
- SimpleApnsPushNotification - Class in com.relayrides.pushy.apns.util
-
- SimpleApnsPushNotification(String, String, String) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, topic, and payload.
- SimpleApnsPushNotification(String, String, String, Date) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, topic, payload, and expiration time.
- SimpleApnsPushNotification(String, String, String, Date, DeliveryPriority) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, topic, payload, delivery expiration time, and delivery
priority.
- Socks4ProxyHandlerFactory - Class in com.relayrides.pushy.apns.proxy
-
- Socks4ProxyHandlerFactory(SocketAddress) - Constructor for class com.relayrides.pushy.apns.proxy.Socks4ProxyHandlerFactory
-
Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given
address and that will not perform authentication.
- Socks4ProxyHandlerFactory(SocketAddress, String) - Constructor for class com.relayrides.pushy.apns.proxy.Socks4ProxyHandlerFactory
-
Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given
address and that will authenticate with the given username and password.
- Socks5ProxyHandlerFactory - Class in com.relayrides.pushy.apns.proxy
-
- Socks5ProxyHandlerFactory(SocketAddress) - Constructor for class com.relayrides.pushy.apns.proxy.Socks5ProxyHandlerFactory
-
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given
address and that will not perform authentication.
- Socks5ProxyHandlerFactory(SocketAddress, String, String) - Constructor for class com.relayrides.pushy.apns.proxy.Socks5ProxyHandlerFactory
-
Creates a new proxy handler factory that will create SOCKS5 proxy handlers that use the proxy at the given
address and that will authenticate with the given username and password.