Package org.cometd.websocket.client
Class JettyWebSocketTransport.JettyWebSocketDelegate
java.lang.Object
org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
org.cometd.websocket.client.JettyWebSocketTransport.JettyWebSocketDelegate
- All Implemented Interfaces:
org.eclipse.jetty.websocket.api.WebSocketListener
- Enclosing class:
- JettyWebSocketTransport
protected class JettyWebSocketTransport.JettyWebSocketDelegate extends AbstractWebSocketTransport.Delegate implements org.eclipse.jetty.websocket.api.WebSocketListener
-
Constructor Summary
Constructors Modifier Constructor Description protected
JettyWebSocketDelegate()
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
fail, failMessages, onClose, onData, onMessages, registerMessages
-
Constructor Details
-
JettyWebSocketDelegate
protected JettyWebSocketDelegate()
-
-
Method Details
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)- Specified by:
onWebSocketConnect
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketClose
- Specified by:
onWebSocketClose
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketText
- 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
- Specified by:
onWebSocketError
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
send
- Specified by:
send
in classAbstractWebSocketTransport.Delegate
-
shutdown
- 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
-