Class WebSocketDocs.AutoDemandListenerEndPoint
java.lang.Object
org.eclipse.jetty.docs.programming.WebSocketDocs.AutoDemandListenerEndPoint
- All Implemented Interfaces:
Session.Listener, Session.Listener.AutoDemanding
- Enclosing class:
WebSocketDocs
public class WebSocketDocs.AutoDemandListenerEndPoint
extends Object
implements Session.Listener.AutoDemanding
-
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 TypeMethodDescriptionvoidonWebSocketOpen(Session session) A WebSocketSessionhas opened successfully and is ready to be used.voidonWebSocketText(String message) A WebSocket TEXT message has been received.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
-
Constructor Details
-
AutoDemandListenerEndPoint
public AutoDemandListenerEndPoint()
-
-
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
-
onWebSocketText
Description copied from interface:Session.ListenerA WebSocket TEXT message has been received.
- Specified by:
onWebSocketTextin interfaceSession.Listener- Parameters:
message- the text payload
-