Package de.svenkubiak.webpush4j
Class Notification
java.lang.Object
de.svenkubiak.webpush4j.Notification
-
Constructor Summary
ConstructorsConstructorDescriptionNotification(String endpoint, org.bouncycastle.jce.interfaces.ECPublicKey userPublicKey, byte[] userAuth, byte[] payload, int ttl, Urgency urgency, String topic) -
Method Summary
Modifier and TypeMethodDescriptionstatic Notificationcreate()byte[]getTopic()intgetTTL()byte[]org.bouncycastle.jce.interfaces.ECPublicKeybooleanbooleanhasTopic()booleanbooleanisFcm()booleanisGcm()Detect if the notification is for a GCM-based subscriptionto(Subscriber subscriber) withPayload(String payload)
-
Constructor Details
-
Notification
-
-
Method Details
-
create
-
to
-
withPayload
-
getEndpoint
-
getUserPublicKey
public org.bouncycastle.jce.interfaces.ECPublicKey getUserPublicKey() -
getUserAuth
public byte[] getUserAuth() -
getPayload
public byte[] getPayload() -
hasPayload
public boolean hasPayload() -
hasUrgency
public boolean hasUrgency() -
hasTopic
public boolean hasTopic() -
isGcm
public boolean isGcm()Detect if the notification is for a GCM-based subscription- Returns:
-
isFcm
public boolean isFcm() -
getTTL
public int getTTL() -
getUrgency
-
getTopic
-
getOrigin
- Throws:
MalformedURLException
-