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

    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Delegate

      protected Delegate()
  • Method Details

    • 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)