Class AbstractWebSocketTransport.Delegate
- java.lang.Object
-
- org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
-
- Direct Known Subclasses:
JettyWebSocketTransport.JettyWebSocketDelegate
,OkHttpWebsocketTransport.OkHttpDelegate
,WebSocketTransport.WebSocketDelegate
- Enclosing class:
- AbstractWebSocketTransport
protected abstract class AbstractWebSocketTransport.Delegate extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Delegate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods 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)
protected String
trimCloseReason(String reason)
-
-
-
Method Detail
-
onClose
protected void onClose(int code, String reason)
-
onData
protected void onData(String data)
-
onMessages
protected void onMessages(List<Message.Mutable> messages)
-
registerMessages
protected void registerMessages(TransportListener listener, List<Message.Mutable> messages)
-
send
protected abstract void send(String content)
-
failMessages
protected void failMessages(Throwable cause)
-
isOpen
protected boolean isOpen()
-
close
protected abstract void close()
-
shutdown
protected abstract void shutdown(String reason)
-
-