Package io.antmedia.rest
Class PushNotificationRestService
java.lang.Object
io.antmedia.rest.PushNotificationRestService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContextprivate AppSettingsprivate IPushNotificationServiceprotected jakarta.servlet.ServletContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSubscriberAuthenticationToken(String subscriberId, int timeoutDurationInSeconds) sendPushNotification(PushNotificationToSubscribers pushNotificationToSubcribers, String serviceName) sendPushNotification(String topic, String jsonMessage, String serviceName) voidsetServletContext(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)
-