Class StompChat

    • Constructor Summary

      Constructors 
      Constructor Description
      StompChat​(java.lang.String host, int port, java.lang.String user)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void connect()  
      static void main​(java.lang.String[] args)  
      void onInfo​(java.util.Map<java.lang.String,​java.lang.String> information)  
      void onMessage​(java.util.Map<java.lang.String,​java.lang.String> headers, byte[] buf, int offset, int length)  
      protected void send​(java.lang.String msg)  
      void sendGetUsers()  
      protected void showStatus​(java.lang.String msg)  
      void start()  
      • Methods inherited from class java.lang.Object

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

      • StompChat

        public StompChat​(java.lang.String host,
                         int port,
                         java.lang.String user)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • connect

        protected void connect()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • send

        protected void send​(java.lang.String msg)
      • sendGetUsers

        public void sendGetUsers()
      • showStatus

        protected void showStatus​(java.lang.String msg)
      • onInfo

        public void onInfo​(java.util.Map<java.lang.String,​java.lang.String> information)
        Specified by:
        onInfo in interface StompConnection.Listener
      • onMessage

        public void onMessage​(java.util.Map<java.lang.String,​java.lang.String> headers,
                              byte[] buf,
                              int offset,
                              int length)
        Specified by:
        onMessage in interface StompConnection.Listener