Class AbstractWebSocketTransport.Delegate

    • 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)  
      • Methods inherited from class java.lang.Object

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

      • Delegate

        protected Delegate()
    • 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)
      • 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)