Class SendVAPIDPush
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.SendVAPIDPush
A Data Access Object to send VAPID push messages.
- Since:
- 10.0
- Version:
- 10.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.deltava.dao.http.DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, init, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStream
-
Constructor Details
-
SendVAPIDPush
Initializes the Data Access Object.- Parameters:
url
- the endpoint URL
-
-
Method Details
-
send
Sends a VAPID message.- Parameters:
jwt
- the JWT tokenbody
- the encrypted message bodyttl
- the time to live on the VAPID service in seconds- Returns:
- the HTTP response code from the service
- Throws:
DAOException
- if an error occurs
-