Class JettyWebSocketEndPoint
java.lang.Object
org.cometd.server.websocket.common.AbstractWebSocketEndPoint
org.cometd.server.websocket.jetty.JettyWebSocketEndPoint
- All Implemented Interfaces:
org.eclipse.jetty.websocket.api.Session.Listener
- Direct Known Subclasses:
JettyWebSocketTransport.EndPoint
public class JettyWebSocketEndPoint
extends AbstractWebSocketEndPoint
implements org.eclipse.jetty.websocket.api.Session.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cometd.server.websocket.common.AbstractWebSocketEndPoint
AbstractWebSocketEndPoint.Context
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.Session.Listener
org.eclipse.jetty.websocket.api.Session.Listener.Abstract, org.eclipse.jetty.websocket.api.Session.Listener.AbstractAutoDemanding, org.eclipse.jetty.websocket.api.Session.Listener.AutoDemanding
-
Constructor Summary
ConstructorDescriptionJettyWebSocketEndPoint
(JettyWebSocketTransport transport, BayeuxContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
onWebSocketClose
(int code, String reason) void
onWebSocketError
(Throwable failure) void
onWebSocketOpen
(org.eclipse.jetty.websocket.api.Session session) void
onWebSocketText
(String data) protected void
send
(ServerSession session, String data, Promise<Void> promise) toString()
Methods inherited from class org.cometd.server.websocket.common.AbstractWebSocketEndPoint
flush, onClose, onError, onMessage, writeComplete
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.websocket.api.Session.Listener
onWebSocketBinary, onWebSocketFrame, onWebSocketPartialBinary, onWebSocketPartialText, onWebSocketPing, onWebSocketPong
-
Constructor Details
-
JettyWebSocketEndPoint
-
-
Method Details
-
onWebSocketOpen
public void onWebSocketOpen(org.eclipse.jetty.websocket.api.Session session) - Specified by:
onWebSocketOpen
in interfaceorg.eclipse.jetty.websocket.api.Session.Listener
-
onWebSocketText
- Specified by:
onWebSocketText
in interfaceorg.eclipse.jetty.websocket.api.Session.Listener
-
onWebSocketClose
- Specified by:
onWebSocketClose
in interfaceorg.eclipse.jetty.websocket.api.Session.Listener
-
onWebSocketError
- Specified by:
onWebSocketError
in interfaceorg.eclipse.jetty.websocket.api.Session.Listener
-
send
- Specified by:
send
in classAbstractWebSocketEndPoint
-
close
- Specified by:
close
in classAbstractWebSocketEndPoint
-
toString
- Overrides:
toString
in classAbstractWebSocketEndPoint
-