Class JettyWebSocketTransport.JettyWebSocketDelegate
- java.lang.Object
-
- org.cometd.client.websocket.common.AbstractWebSocketTransport.Delegate
-
- org.cometd.client.websocket.jetty.JettyWebSocketTransport.JettyWebSocketDelegate
-
- All Implemented Interfaces:
org.eclipse.jetty.websocket.api.WebSocketConnectionListener
,org.eclipse.jetty.websocket.api.WebSocketListener
- Enclosing class:
- JettyWebSocketTransport
public class JettyWebSocketTransport.JettyWebSocketDelegate extends AbstractWebSocketTransport.Delegate implements org.eclipse.jetty.websocket.api.WebSocketListener
-
-
Constructor Summary
Constructors Constructor Description JettyWebSocketDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close()
protected boolean
isOpen()
void
onWebSocketBinary(byte[] payload, int offset, int len)
void
onWebSocketClose(int closeCode, java.lang.String reason)
void
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
void
onWebSocketError(java.lang.Throwable failure)
void
onWebSocketText(java.lang.String data)
void
send(java.lang.String content)
protected void
shutdown(java.lang.String reason)
-
Methods inherited from class org.cometd.client.websocket.common.AbstractWebSocketTransport.Delegate
fail, failMessages, onClose, onData, onMessages, registerMessages, trimCloseReason
-
-
-
-
Method Detail
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
- Specified by:
onWebSocketConnect
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketClose
public void onWebSocketClose(int closeCode, java.lang.String reason)
- Specified by:
onWebSocketClose
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketText
public void onWebSocketText(java.lang.String data)
- Specified by:
onWebSocketText
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketBinary
public void onWebSocketBinary(byte[] payload, int offset, int len)
- Specified by:
onWebSocketBinary
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketError
public void onWebSocketError(java.lang.Throwable failure)
- Specified by:
onWebSocketError
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
send
public void send(java.lang.String content)
- Specified by:
send
in classAbstractWebSocketTransport.Delegate
-
shutdown
protected void shutdown(java.lang.String reason)
- Specified by:
shutdown
in classAbstractWebSocketTransport.Delegate
-
isOpen
protected boolean isOpen()
- Overrides:
isOpen
in classAbstractWebSocketTransport.Delegate
-
close
protected void close()
- Specified by:
close
in classAbstractWebSocketTransport.Delegate
-
-