Class PushNotificationRestService

java.lang.Object
io.antmedia.rest.PushNotificationRestService

@Component @Path("/v2/push-notification") public class PushNotificationRestService extends Object
  • Field Details

  • Constructor Details

    • PushNotificationRestService

      public PushNotificationRestService()
  • Method Details

    • getAppContext

      public ApplicationContext getAppContext()
    • getPushNotificationService

      public IPushNotificationService getPushNotificationService()
    • getAppSettings

      public AppSettings getAppSettings()
    • getSubscriberAuthenticationToken

      @GET @Produces("application/json") @Path("/subscriber-auth-token") public Result getSubscriberAuthenticationToken(@QueryParam("subscriberId") String subscriberId, @QueryParam("timeoutSeconds") int timeoutDurationInSeconds)
    • sendPushNotification

      @POST @Consumes("application/json") @Produces("application/json") @Path("/subscribers") public Result sendPushNotification(PushNotificationToSubscribers pushNotificationToSubcribers, @QueryParam("serviceName") String serviceName)
    • sendPushNotification

      @POST @Consumes("application/json") @Produces("application/json") @Path("/topics/{topic}") public Result sendPushNotification(@PathParam("topic") String topic, String jsonMessage, @QueryParam("serviceName") String serviceName)
    • setServletContext

      public void setServletContext(jakarta.servlet.ServletContext servletContext)