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