- getCollapseId() - Method in interface com.relayrides.pushy.apns.ApnsPushNotification
-
Returns an optional identifier for this notification that allows this notification to supersede previous
notifications or to be superseded by later notifications with the same identifier.
- getCollapseId() - Method in class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Returns the "collapse ID" for this push notification, which allows it to supersede or be superseded by other
notifications with the same ID.
- 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.
- setActionButtonLabel(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the literal text of the action button to be shown for the push notification for Safari push
notifications only.
- 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.
- setAlertSubtitle(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets a subtitle for the 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.
- setChannelWriteBufferWatermark(WriteBufferWaterMark) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the buffer usage watermark range for the client to build.
- setClientCredentials(File, String) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the credentials for the client under construction using the contents of the given PKCS#12 file.
- setClientCredentials(InputStream, String) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the credentials for the client under construction using the data from the given PKCS#12 input stream.
- setClientCredentials(X509Certificate, PrivateKey, String) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the credentials for the client under construction.
- setConnectionTimeout(long, TimeUnit) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the maximum amount of time, in milliseconds, that the client under construction 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.
- setEmulateInternalErrors(boolean) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets whether the server under construction should respond to all notifications with an internal server error.
- setEventLoopGroup(EventLoopGroup) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the event loop group to be used by the client under construction.
- setEventLoopGroup(EventLoopGroup) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the event loop group to be used by the server under construction.
- setGracefulShutdownTimeout(long, TimeUnit) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the amount of time 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.
- setLocalizedAlertSubtitle(String, String...) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the key of the subtitle string 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.ApnsClientBuilder
-
Sets the metrics listener for the client under construction.
- setMutableContent(boolean) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets whether the receiving device may modify the content of the push notification before displaying it.
- setPreferStringRepresentationForAlerts(boolean) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets whether this payload builder will attempt to represent alerts as strings when possible.
- setProxyHandlerFactory(ProxyHandlerFactory) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the proxy handler factory to be used to construct proxy handlers when establishing a new connection to the
APNs gateway.
- setServerCredentials(File, File, String) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the credentials for the server under construction using the certificates in the given PEM file and the
private key in the given PKCS#8 file.
- setServerCredentials(InputStream, InputStream, String) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the credentials for the server under construction using the certificates in the given PEM input stream
and the private key in the given PKCS#8 input stream.
- setServerCredentials(X509Certificate[], PrivateKey, String) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the credentials for the server under construction.
- 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.
- setSslProvider(SslProvider) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the SSL provider to be used by the client under construction.
- setSslProvider(SslProvider) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the SSL provider to be used by the mock server.
- setThreadId(String) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the thread ID for this notification.
- setTrustedClientCertificateChain(File) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the trusted certificate chain for the server under construction using the contents of the given PEM
file.
- setTrustedClientCertificateChain(InputStream) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the trusted certificate chain for the server under construction using the contents of the given PEM
input stream.
- setTrustedServerCertificateChain(File) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the trusted certificate chain for the client under construction using the contents of the given PEM
file.
- setTrustedServerCertificateChain(InputStream) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the trusted certificate chain for the client under construction using the contents of the given PEM
input stream.
- setTrustedServerCertificateChain(X509Certificate...) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the trusted certificate chain for the client under construction.
- setTrustedServerCertificateChain(X509Certificate...) - Method in class com.relayrides.pushy.apns.MockApnsServerBuilder
-
Sets the trusted certificate chain for the server under construction.
- setUrlArguments(List<String>) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the list of arguments to populate placeholders in the urlFormatString
associated with a Safari
push notification.
- setUrlArguments(String...) - Method in class com.relayrides.pushy.apns.util.ApnsPayloadBuilder
-
Sets the list of arguments to populate placeholders in the urlFormatString
associated with a Safari
push notification.
- setWriteTimeout(long, TimeUnit) - Method in class com.relayrides.pushy.apns.ApnsClientBuilder
-
Sets the write timeout for the client to build.
- shutdown() - Method in class com.relayrides.pushy.apns.MockApnsServer
-
Shuts down this server and releases the port to which this server was bound.
- 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.
- SimpleApnsPushNotification(String, String, String, Date, DeliveryPriority, String) - Constructor for class com.relayrides.pushy.apns.util.SimpleApnsPushNotification
-
Constructs a new push notification with the given token, topic, payload, delivery expiration time, delivery
priority, and "collapse identifier."
- 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.
- start(int) - Method in class com.relayrides.pushy.apns.MockApnsServer
-
Starts this mock server and listens for traffic on the given port.