Class WebSocketDocs.WrongAutoDemandListenerEndPoint
java.lang.Object
org.eclipse.jetty.docs.programming.WebSocketDocs.WrongAutoDemandListenerEndPoint
- All Implemented Interfaces:
Session.Listener
,Session.Listener.AutoDemanding
- Enclosing class:
WebSocketDocs
public class WebSocketDocs.WrongAutoDemandListenerEndPoint
extends Object
implements Session.Listener.AutoDemanding
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.Session.Listener
Session.Listener.Abstract, Session.Listener.AbstractAutoDemanding, Session.Listener.AutoDemanding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onWebSocketOpen
(Session session) A WebSocketSession
has opened successfully and is ready to be used.void
onWebSocketText
(String message) A WebSocket TEXT message has been received.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.websocket.api.Session.Listener
onWebSocketBinary, onWebSocketClose, onWebSocketError, onWebSocketFrame, onWebSocketPartialBinary, onWebSocketPartialText, onWebSocketPing, onWebSocketPong
-
Constructor Details
-
WrongAutoDemandListenerEndPoint
public WrongAutoDemandListenerEndPoint()
-
-
Method Details
-
onWebSocketOpen
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 interfaceSession.Listener
- Parameters:
session
- the WebSocket session
-
onWebSocketText
Description copied from interface:Session.Listener
A WebSocket TEXT message has been received.
- Specified by:
onWebSocketText
in interfaceSession.Listener
- Parameters:
message
- the text payload
-