Package org.cometd.websocket.server
Class JettyWebSocketEndPoint
- java.lang.Object
-
- org.cometd.websocket.server.common.AbstractWebSocketEndPoint
-
- org.cometd.websocket.server.JettyWebSocketEndPoint
-
- All Implemented Interfaces:
org.eclipse.jetty.websocket.api.WebSocketConnectionListener
,org.eclipse.jetty.websocket.api.WebSocketListener
public class JettyWebSocketEndPoint extends AbstractWebSocketEndPoint implements org.eclipse.jetty.websocket.api.WebSocketListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cometd.websocket.server.common.AbstractWebSocketEndPoint
AbstractWebSocketEndPoint.Context
-
-
Constructor Summary
Constructors Constructor Description JettyWebSocketEndPoint(JettyWebSocketTransport transport, BayeuxContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(int code, String reason)
void
onWebSocketBinary(byte[] payload, int offset, int len)
void
onWebSocketClose(int code, String reason)
void
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
void
onWebSocketError(Throwable failure)
void
onWebSocketText(String data)
protected void
send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
-
Methods inherited from class org.cometd.websocket.server.common.AbstractWebSocketEndPoint
flush, onClose, onError, onMessage, writeComplete
-
-
-
-
Constructor Detail
-
JettyWebSocketEndPoint
public JettyWebSocketEndPoint(JettyWebSocketTransport transport, BayeuxContext context)
-
-
Method Detail
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
- Specified by:
onWebSocketConnect
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketBinary
public void onWebSocketBinary(byte[] payload, int offset, int len)
- Specified by:
onWebSocketBinary
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketText
public void onWebSocketText(String data)
- Specified by:
onWebSocketText
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketClose
public void onWebSocketClose(int code, String reason)
- Specified by:
onWebSocketClose
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketError
public void onWebSocketError(Throwable failure)
- Specified by:
onWebSocketError
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
send
protected void send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
- Specified by:
send
in classAbstractWebSocketEndPoint
-
close
public void close(int code, String reason)
- Specified by:
close
in classAbstractWebSocketEndPoint
-
-