Class WebSocketEndPoint
- java.lang.Object
-
- jakarta.websocket.Endpoint
-
- org.cometd.server.websocket.javax.WebSocketEndPoint
-
- All Implemented Interfaces:
jakarta.websocket.MessageHandler
,jakarta.websocket.MessageHandler.Whole<java.lang.String>
- Direct Known Subclasses:
WebSocketTransport.EndPoint
public class WebSocketEndPoint extends jakarta.websocket.Endpoint implements jakarta.websocket.MessageHandler.Whole<java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description WebSocketEndPoint(AbstractWebSocketTransport transport, BayeuxContext bayeuxContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClose(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason)
void
onError(jakarta.websocket.Session wsSession, java.lang.Throwable failure)
void
onMessage(java.lang.String data)
void
onOpen(jakarta.websocket.Session wsSession, jakarta.websocket.EndpointConfig config)
java.lang.String
toString()
protected void
writeComplete(AbstractWebSocketEndPoint.Context context, java.util.List<ServerMessage> messages)
-
-
-
Constructor Detail
-
WebSocketEndPoint
public WebSocketEndPoint(AbstractWebSocketTransport transport, BayeuxContext bayeuxContext)
-
-
Method Detail
-
onOpen
public void onOpen(jakarta.websocket.Session wsSession, jakarta.websocket.EndpointConfig config)
- Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onMessage
public void onMessage(java.lang.String data)
- Specified by:
onMessage
in interfacejakarta.websocket.MessageHandler.Whole<java.lang.String>
-
onClose
public void onClose(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason)
- Overrides:
onClose
in classjakarta.websocket.Endpoint
-
onError
public void onError(jakarta.websocket.Session wsSession, java.lang.Throwable failure)
- Overrides:
onError
in classjakarta.websocket.Endpoint
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, java.util.List<ServerMessage> messages)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-