Class NotificationStreamServlet.NotificationStreamSocket

  • All Implemented Interfaces:
    org.eclipse.jetty.websocket.api.WebSocketConnectionListener, org.eclipse.jetty.websocket.api.WebSocketListener
    Enclosing class:
    NotificationStreamServlet

    public class NotificationStreamServlet.NotificationStreamSocket
    extends org.eclipse.jetty.websocket.api.WebSocketAdapter
    • Constructor Detail

      • NotificationStreamSocket

        public NotificationStreamSocket​(String user)
    • Method Detail

      • onWebSocketConnect

        public void onWebSocketConnect​(org.eclipse.jetty.websocket.api.Session session)
        Specified by:
        onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketConnect in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketClose

        public void onWebSocketClose​(int statusCode,
                                     String reason)
        Specified by:
        onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketClose in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketError

        public void onWebSocketError​(Throwable cause)
        Specified by:
        onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketError in class org.eclipse.jetty.websocket.api.WebSocketAdapter