Class AbstractWebSocketTransport.Delegate
java.lang.Object
org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
- Direct Known Subclasses:
JettyWebSocketTransport.JettyWebSocketDelegate
,WebSocketTransport.WebSocketDelegate
- Enclosing class:
- AbstractWebSocketTransport
protected abstract class AbstractWebSocketTransport.Delegate extends Object
-
Constructor Summary
Constructors Modifier Constructor Description protected
Delegate()
-
Method Summary
Modifier and Type Method Description protected abstract void
close()
protected void
fail(Throwable failure, String reason)
protected void
failMessages(Throwable cause)
protected boolean
isOpen()
protected void
onClose(int code, String reason)
protected void
onData(String data)
protected void
onMessages(List<Message.Mutable> messages)
protected void
registerMessages(TransportListener listener, List<Message.Mutable> messages)
protected abstract void
send(String content)
protected abstract void
shutdown(String reason)
-
Constructor Details
-
Delegate
protected Delegate()
-
-
Method Details
-
onClose
-
onData
-
onMessages
-
registerMessages
-
send
-
fail
-
failMessages
-
isOpen
protected boolean isOpen() -
close
protected abstract void close() -
shutdown
-