Class WebSocketDocs.RoundTripListenerEndpoint
java.lang.Object
org.eclipse.jetty.docs.programming.WebSocketDocs.RoundTripListenerEndpoint
- All Implemented Interfaces:
 Session.Listener
- Enclosing class:
 WebSocketDocs
- 
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.voidonWebSocketPong(ByteBuffer payload) A WebSocket PONG frame 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, onWebSocketText 
- 
Constructor Details
- 
RoundTripListenerEndpoint
public RoundTripListenerEndpoint() 
 - 
 - 
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
 - 
onWebSocketPong
Description copied from interface:Session.ListenerA WebSocket PONG frame has been received.
- Specified by:
 onWebSocketPongin interfaceSession.Listener- Parameters:
 payload- the PONG payload
 
 -