protected class JettyWebSocketTransport.JettyWebSocketDelegate extends AbstractWebSocketTransport.Delegate implements org.eclipse.jetty.websocket.api.WebSocketListener
Modifier | Constructor and Description |
---|---|
protected |
JettyWebSocketDelegate() |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected boolean |
isOpen() |
void |
onWebSocketBinary(byte[] payload,
int offset,
int len) |
void |
onWebSocketClose(int closeCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable failure) |
void |
onWebSocketText(String data) |
void |
send(String content) |
protected void |
shutdown(String reason) |
fail, failMessages, onClose, onData, onMessages, registerMessages, trimCloseReason
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
public void onWebSocketClose(int closeCode, String reason)
onWebSocketClose
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
public void onWebSocketText(String data)
onWebSocketText
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketBinary(byte[] payload, int offset, int len)
onWebSocketBinary
in interface org.eclipse.jetty.websocket.api.WebSocketListener
public void onWebSocketError(Throwable failure)
onWebSocketError
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
public void send(String content)
send
in class AbstractWebSocketTransport.Delegate
protected void shutdown(String reason)
shutdown
in class AbstractWebSocketTransport.Delegate
protected boolean isOpen()
isOpen
in class AbstractWebSocketTransport.Delegate
protected void close()
close
in class AbstractWebSocketTransport.Delegate
Copyright © 2008–2024 The CometD Project. All rights reserved.