Package com.iizix.push.vapid
Class PushAsyncService
- Field Summary- Fields inherited from class com.iizix.push.vapid.AbstractPushService- SERVER_KEY_CURVE, SERVER_KEY_ID
- Constructor SummaryConstructorsConstructorDescription- PushAsyncService- (String gcmApiKey) - PushAsyncService- (String publicKey, String privateKey) - PushAsyncService- (String publicKey, String privateKey, String subject) - PushAsyncService- (KeyPair keyPair) - PushAsyncService- (KeyPair keyPair, String subject) 
- Method SummaryModifier and TypeMethodDescription- org.asynchttpclient.BoundRequestBuilder- preparePost- (Notification notification, Encoding encoding) Prepare a POST request for AHC.- CompletableFuture<org.asynchttpclient.Response>- send- (Notification notification) - CompletableFuture<org.asynchttpclient.Response>- send- (Notification notification, Encoding encoding) Send a notification asynchronously.- Methods inherited from class com.iizix.push.vapid.AbstractPushService- encrypt, getGcmApiKey, getKeyPair, getPrivateKey, getPublicKey, getSubject, prepareRequest, setGcmApiKey, setKeyPair, setPrivateKey, setPrivateKey, setPublicKey, setPublicKey, setSubject, vapidEnabled
- Constructor Details- PushAsyncServicepublic PushAsyncService()
- PushAsyncService
- PushAsyncService
- PushAsyncService
- PushAsyncService- Throws:
- GeneralSecurityException
 
- PushAsyncServicepublic PushAsyncService- (String publicKey, String privateKey, String subject) throws GeneralSecurityException - Throws:
- GeneralSecurityException
 
 
- Method Details- sendpublic CompletableFuture<org.asynchttpclient.Response> send- (Notification notification, Encoding encoding) throws GeneralSecurityException, IOException, org.jose4j.lang.JoseException Send a notification asynchronously.- Parameters:
- notification-
- encoding-
- Returns:
- Throws:
- GeneralSecurityException
- IOException
- org.jose4j.lang.JoseException
 
- sendpublic CompletableFuture<org.asynchttpclient.Response> send- (Notification notification) throws GeneralSecurityException, IOException, org.jose4j.lang.JoseException - Throws:
- GeneralSecurityException
- IOException
- org.jose4j.lang.JoseException
 
- preparePostpublic org.asynchttpclient.BoundRequestBuilder preparePost- (Notification notification, Encoding encoding) throws GeneralSecurityException, IOException, org.jose4j.lang.JoseException Prepare a POST request for AHC.- Parameters:
- notification-
- encoding-
- Returns:
- Throws:
- GeneralSecurityException
- IOException
- org.jose4j.lang.JoseException