Class StompWSConnection

  • All Implemented Interfaces:
    org.eclipse.jetty.websocket.api.WebSocketConnectionListener, org.eclipse.jetty.websocket.api.WebSocketListener

    public class StompWSConnection
    extends org.eclipse.jetty.websocket.api.WebSocketAdapter
    implements org.eclipse.jetty.websocket.api.WebSocketListener
    STOMP over WS based Connection class
    • Constructor Detail

      • StompWSConnection

        public StompWSConnection()
    • Method Detail

      • isConnected

        public boolean isConnected()
        Overrides:
        isConnected in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • close

        public void close()
      • getConnection

        protected org.eclipse.jetty.websocket.api.Session getConnection()
      • getCloseCode

        public int getCloseCode()
      • getCloseMessage

        public String getCloseMessage()
      • onWebSocketText

        public void onWebSocketText​(String data)
        Specified by:
        onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListener
        Overrides:
        onWebSocketText in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketClose

        public void onWebSocketClose​(int statusCode,
                                     String reason)
        Specified by:
        onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketClose in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketConnect

        public void onWebSocketConnect​(org.eclipse.jetty.websocket.api.Session session)
        Specified by:
        onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketConnect in class org.eclipse.jetty.websocket.api.WebSocketAdapter