Class Session.Listener.Abstract

java.lang.Object
org.eclipse.jetty.websocket.api.Session.Listener.Abstract
All Implemented Interfaces:
Session.Listener
Direct Known Subclasses:
Session.Listener.AbstractAutoDemanding
Enclosing interface:
Session.Listener

public abstract static class Session.Listener.Abstract extends Object implements Session.Listener
  • Constructor Details

    • Abstract

      public Abstract()
  • Method Details

    • onWebSocketOpen

      public void onWebSocketOpen(Session session)
      Description copied from interface: Session.Listener

      A WebSocket Session has opened successfully and is ready to be used.

      Applications can store the given Session as a field so it can be used to send messages back to the other peer.

      Specified by:
      onWebSocketOpen in interface Session.Listener
      Parameters:
      session - the WebSocket session
    • getSession

      public Session getSession()
    • isOpen

      public boolean isOpen()