Package io.antmedia.rest
Class PushNotificationRestService
java.lang.Object
io.antmedia.rest.PushNotificationRestService
-
Field Summary
Modifier and TypeFieldDescriptionprotected ApplicationContext
private AppSettings
private IPushNotificationService
protected jakarta.servlet.ServletContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSubscriberAuthenticationToken
(String subscriberId, int timeoutDurationInSeconds) sendPushNotification
(PushNotificationToSubscribers pushNotificationToSubcribers, String serviceName) sendPushNotification
(String topic, String jsonMessage, String serviceName) void
setServletContext
(jakarta.servlet.ServletContext servletContext)
-
Field Details
-
servletContext
@Context protected jakarta.servlet.ServletContext servletContext -
appCtx
-
pushNotificationService
-
appSettings
-
-
Constructor Details
-
PushNotificationRestService
public PushNotificationRestService()
-
-
Method Details
-
getAppContext
-
getPushNotificationService
-
getAppSettings
-
getSubscriberAuthenticationToken
-
sendPushNotification
@POST @Consumes("application/json") @Produces("application/json") @Path("/subscribers") public Result sendPushNotification(PushNotificationToSubscribers pushNotificationToSubcribers, @QueryParam("serviceName") String serviceName) -
sendPushNotification
-
setServletContext
public void setServletContext(jakarta.servlet.ServletContext servletContext)
-