Class StompSocket

java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.ws.AbstractStompSocket
org.apache.activemq.transport.ws.jetty11.StompSocket
All Implemented Interfaces:
org.apache.activemq.Service, StompTransport, org.apache.activemq.transport.Transport, org.eclipse.jetty.websocket.api.WebSocketConnectionListener, org.eclipse.jetty.websocket.api.WebSocketListener

public class StompSocket extends AbstractStompSocket implements org.eclipse.jetty.websocket.api.WebSocketListener
Implements web socket and mediates between servlet and the broker
  • Constructor Details

    • StompSocket

      public StompSocket(String remoteAddress)
  • Method Details

    • sendToStomp

      public void sendToStomp(StompFrame command) throws IOException
      Specified by:
      sendToStomp in interface StompTransport
      Specified by:
      sendToStomp in class AbstractStompSocket
      Throws:
      IOException
    • handleStopped

      public void handleStopped() throws IOException
      Description copied from class: AbstractStompSocket
      Called when the transport is stopping to allow the dervied classes a chance to close WebSocket resources.
      Specified by:
      handleStopped in class AbstractStompSocket
      Throws:
      IOException - if an error occurs during the stop.
    • onWebSocketBinary

      public void onWebSocketBinary(byte[] arg0, int arg1, int arg2)
      Specified by:
      onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListener
    • onWebSocketClose

      public void onWebSocketClose(int arg0, String arg1)
      Specified by:
      onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
    • onWebSocketConnect

      public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
      Specified by:
      onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
    • onWebSocketError

      public void onWebSocketError(Throwable arg0)
      Specified by:
      onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
    • onWebSocketText

      public void onWebSocketText(String data)
      Specified by:
      onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListener