Class ServerSentEventConnection

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public abstract class ServerSentEventConnection
    extends Object
    implements Closeable
    Represents a Server-Sent Event connection for sending push notifications
    Author:
    Jitendra Kotamraju
    • Constructor Detail

      • ServerSentEventConnection

        public ServerSentEventConnection()
    • Method Detail

      • getRequest

        public abstract jakarta.servlet.http.HttpServletRequest getRequest()
        Servlet request for Server-Sent Event connection
        Returns:
        servlet request
      • getLastEventID

        public String getLastEventID()
        Event source's last event ID.
        Returns:
        null if there is no HTTP header in the request otherwise, last event ID