public abstract class AbstractWebSocketEndPoint extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractWebSocketEndPoint.Context |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWebSocketEndPoint(AbstractWebSocketTransport transport,
BayeuxContext context) |
Modifier and Type | Method and Description |
---|---|
abstract void |
close(int code,
String reason) |
protected void |
flush(AbstractWebSocketEndPoint.Context context,
Promise<Void> promise) |
void |
onClose(int code,
String reason) |
void |
onError(Throwable failure) |
void |
onMessage(String data,
Promise<Void> p) |
protected abstract void |
send(ServerSession session,
String data,
org.eclipse.jetty.util.Callback callback) |
String |
toString() |
protected void |
writeComplete(AbstractWebSocketEndPoint.Context context,
List<ServerMessage> messages) |
protected AbstractWebSocketEndPoint(AbstractWebSocketTransport transport, BayeuxContext context)
protected abstract void send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
public abstract void close(int code, String reason)
public void onClose(int code, String reason)
public void onError(Throwable failure)
protected void flush(AbstractWebSocketEndPoint.Context context, Promise<Void> promise)
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
Copyright © 2008–2024 The CometD Project. All rights reserved.