Class AbstractWebSocketEndPoint
- java.lang.Object
-
- org.cometd.websocket.server.common.AbstractWebSocketEndPoint
-
- Direct Known Subclasses:
JettyWebSocketEndPoint
public abstract class AbstractWebSocketEndPoint extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractWebSocketEndPoint.Context
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractWebSocketEndPoint(AbstractWebSocketTransport transport, BayeuxContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
protected void
writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-
-
-
Constructor Detail
-
AbstractWebSocketEndPoint
protected AbstractWebSocketEndPoint(AbstractWebSocketTransport transport, BayeuxContext context)
-
-
Method Detail
-
send
protected abstract void send(ServerSession session, String data, org.eclipse.jetty.util.Callback callback)
-
close
public abstract void close(int code, String reason)
-
onClose
public void onClose(int code, String reason)
-
onError
public void onError(Throwable failure)
-
flush
protected void flush(AbstractWebSocketEndPoint.Context context, Promise<Void> promise)
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-
-