Class WebSocketEndPoint
- java.lang.Object
-
- javax.websocket.Endpoint
-
- org.cometd.server.websocket.javax.WebSocketEndPoint
-
- All Implemented Interfaces:
javax.websocket.MessageHandler
,javax.websocket.MessageHandler.Whole<java.lang.String>
- Direct Known Subclasses:
WebSocketTransport.EndPoint
public class WebSocketEndPoint extends javax.websocket.Endpoint implements javax.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(javax.websocket.Session wsSession, javax.websocket.CloseReason closeReason)
void
onError(javax.websocket.Session wsSession, java.lang.Throwable failure)
void
onMessage(java.lang.String data)
void
onOpen(javax.websocket.Session wsSession, javax.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(javax.websocket.Session wsSession, javax.websocket.EndpointConfig config)
- Specified by:
onOpen
in classjavax.websocket.Endpoint
-
onMessage
public void onMessage(java.lang.String data)
- Specified by:
onMessage
in interfacejavax.websocket.MessageHandler.Whole<java.lang.String>
-
onClose
public void onClose(javax.websocket.Session wsSession, javax.websocket.CloseReason closeReason)
- Overrides:
onClose
in classjavax.websocket.Endpoint
-
onError
public void onError(javax.websocket.Session wsSession, java.lang.Throwable failure)
- Overrides:
onError
in classjavax.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
-
-