Package com.iizix.push.vapid
Class Notification
java.lang.Object
com.iizix.push.vapid.Notification
- Nested Class SummaryNested Classes
- Constructor SummaryConstructorsConstructorDescription- Notification- (Subscription subscription, String payload) - Notification- (Subscription subscription, String payload, Urgency urgency) - Notification- (String endpoint, String userPublicKey, String userAuth, byte[] payload) - Notification- (String endpoint, String userPublicKey, String userAuth, byte[] payload, int ttl) - Notification- (String endpoint, String userPublicKey, String userAuth, String payload) - Notification- (String endpoint, String userPublicKey, String userAuth, String payload, Urgency urgency) - Notification- (String endpoint, PublicKey userPublicKey, byte[] userAuth, byte[] payload) - Notification- (String endpoint, PublicKey userPublicKey, byte[] userAuth, byte[] payload, int ttl) - Notification- (String endpoint, ECPublicKey userPublicKey, byte[] userAuth, byte[] payload, int ttl, Urgency urgency, String topic) 
- Method Summary
- Constructor Details- Notificationpublic Notification- (String endpoint, ECPublicKey userPublicKey, byte[] userAuth, byte[] payload, int ttl, Urgency urgency, String topic) 
- Notification
- Notificationpublic Notification- (String endpoint, String userPublicKey, String userAuth, byte[] payload, int ttl) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
- Notification
- Notificationpublic Notification- (String endpoint, String userPublicKey, String userAuth, byte[] payload) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
- Notificationpublic Notification- (String endpoint, String userPublicKey, String userAuth, String payload) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
- Notificationpublic Notification- (String endpoint, String userPublicKey, String userAuth, String payload, Urgency urgency) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
- Notificationpublic Notification- (Subscription subscription, String payload) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
- Notificationpublic Notification- (Subscription subscription, String payload, Urgency urgency) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException 
 
- Method Details- getEndpoint
- getUserPublicKey
- getUserAuthpublic byte[] getUserAuth()
- getPayloadpublic byte[] getPayload()
- hasPayloadpublic boolean hasPayload()
- hasUrgencypublic boolean hasUrgency()
- hasTopicpublic boolean hasTopic()
- isGcmpublic boolean isGcm()Detect if the notification is for a GCM-based subscription- Returns:
 
- isFcmpublic boolean isFcm()
- getTTLpublic int getTTL()
- getUrgency
- getTopic
- getOrigin- Throws:
- MalformedURLException
 
- builder