Package org.cometd.websocket.server
Class WebSocketEndPoint
- java.lang.Object
-
- javax.websocket.Endpoint
-
- org.cometd.websocket.server.WebSocketEndPoint
-
-
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, Throwable failure)
void
onMessage(String data)
void
onOpen(javax.websocket.Session wsSession, javax.websocket.EndpointConfig config)
protected void
writeComplete(AbstractWebSocketEndPoint.Context context, 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(String data)
- Specified by:
onMessage
in interfacejavax.websocket.MessageHandler.Whole<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, Throwable failure)
- Overrides:
onError
in classjavax.websocket.Endpoint
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-
-