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
-
Nested Class Summary
Nested classes/interfaces inherited from interface Session.Listener
Session.Listener.Abstract, Session.Listener.AbstractAutoDemanding, Session.Listener.AutoDemanding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisOpen()voidonWebSocketOpen(Session session) A WebSocketSessionhas opened successfully and is ready to be used.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Session.Listener
onWebSocketBinary, onWebSocketClose, onWebSocketError, onWebSocketFrame, onWebSocketPartialBinary, onWebSocketPartialText, onWebSocketPing, onWebSocketPong, onWebSocketText
-
Constructor Details
-
Abstract
public Abstract()
-
-
Method Details
-
onWebSocketOpen
Description copied from interface:Session.ListenerA WebSocket
Sessionhas opened successfully and is ready to be used.Applications can store the given
Sessionas a field so it can be used to send messages back to the other peer.- Specified by:
onWebSocketOpenin interfaceSession.Listener- Parameters:
session- the WebSocket session
-
getSession
-
isOpen
public boolean isOpen()
-