public class JettyWebSocketEndPoint extends AbstractWebSocketEndPoint implements org.eclipse.jetty.websocket.api.WebSocketListener
AbstractWebSocketEndPoint.Context
Constructor and Description |
---|
JettyWebSocketEndPoint(JettyWebSocketTransport transport,
BayeuxContext context) |
Modifier and Type | Method and 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) |
String |
toString() |
flush, onClose, onError, onMessage, writeComplete
public JettyWebSocketEndPoint(JettyWebSocketTransport transport, BayeuxContext context)
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
public void onWebSocketBinary(byte[] payload, int offset, int len)
onWebSocketBinary
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketText(String data)
onWebSocketText
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketClose(int code, String reason)
onWebSocketClose
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
public void onWebSocketError(Throwable failure)
onWebSocketError
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
protected void send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
send
in class AbstractWebSocketEndPoint
public void close(int code, String reason)
close
in class AbstractWebSocketEndPoint
public String toString()
toString
in class AbstractWebSocketEndPoint
Copyright © 2008–2024 The CometD Project. All rights reserved.