public class AsyncOkHttpApnsClient extends SyncOkHttpApnsClient
client| Constructor and Description |
|---|
AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.ConnectionPool connectionPool) |
AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder) |
AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder,
int connectionPort) |
AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.ConnectionPool connectionPool) |
AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder) |
AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder,
int connectionPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSynchronous()
Checks whether the client supports synchronous operations.
|
NotificationResponse |
push(Notification notification)
Sends a notification synchronously to the Apple Push Notification Service.
|
void |
push(Notification notification,
NotificationResponseListener nrl)
Sends a notification asynchronously to the Apple Push Notification Service.
|
buildRequest, getHttpClient, parseResponsepublic AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.ConnectionPool connectionPool)
public AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.ConnectionPool connectionPool)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.io.IOException,
java.security.UnrecoverableKeyException,
java.security.KeyManagementException
java.security.cert.CertificateExceptionjava.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.io.IOExceptionjava.security.UnrecoverableKeyExceptionjava.security.KeyManagementExceptionpublic AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder)
public AsyncOkHttpApnsClient(java.lang.String apnsAuthKey,
java.lang.String teamID,
java.lang.String keyID,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder,
int connectionPort)
public AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.io.IOException,
java.security.UnrecoverableKeyException,
java.security.KeyManagementException
java.security.cert.CertificateExceptionjava.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.io.IOExceptionjava.security.UnrecoverableKeyExceptionjava.security.KeyManagementExceptionpublic AsyncOkHttpApnsClient(java.io.InputStream certificate,
java.lang.String password,
boolean production,
java.lang.String defaultTopic,
okhttp3.OkHttpClient.Builder builder,
int connectionPort)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.io.IOException,
java.security.UnrecoverableKeyException,
java.security.KeyManagementException
java.security.cert.CertificateExceptionjava.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionjava.io.IOExceptionjava.security.UnrecoverableKeyExceptionjava.security.KeyManagementExceptionpublic NotificationResponse push(Notification notification)
ApnsClientpush in interface ApnsClientpush in class SyncOkHttpApnsClientnotification - The notification built using
Notification.Builderpublic boolean isSynchronous()
ApnsClientThis is specified when building the client using
isSynchronous in interface ApnsClientisSynchronous in class SyncOkHttpApnsClientpublic void push(Notification notification, NotificationResponseListener nrl)
ApnsClientpush in interface ApnsClientpush in class SyncOkHttpApnsClientnotification - The notification built using
Notification.Buildernrl - The listener to be called after the request is completeCopyright © 2020. All Rights Reserved.