Class AbstractStompSocket

  • All Implemented Interfaces:
    org.apache.activemq.Service, StompTransport, org.apache.activemq.transport.Transport
    Direct Known Subclasses:
    StompSocket

    public abstract class AbstractStompSocket
    extends org.apache.activemq.transport.TransportSupport
    implements StompTransport
    Base implementation of a STOMP based WebSocket handler.
    • Constructor Detail

      • AbstractStompSocket

        public AbstractStompSocket​(String remoteAddress)
    • Method Detail

      • oneway

        public void oneway​(Object command)
                    throws IOException
        Specified by:
        oneway in interface org.apache.activemq.transport.Transport
        Throws:
        IOException
      • sendToActiveMQ

        public void sendToActiveMQ​(org.apache.activemq.command.Command command)
        Specified by:
        sendToActiveMQ in interface StompTransport
      • handleStopped

        public abstract void handleStopped()
                                    throws IOException
        Called when the transport is stopping to allow the dervied classes a chance to close WebSocket resources.
        Throws:
        IOException - if an error occurs during the stop.
      • getRemoteAddress

        public String getRemoteAddress()
        Specified by:
        getRemoteAddress in interface org.apache.activemq.transport.Transport
      • getReceiveCounter

        public int getReceiveCounter()
        Specified by:
        getReceiveCounter in interface org.apache.activemq.transport.Transport
      • processStompFrame

        protected void processStompFrame​(String data)
      • getPeerCertificates

        public X509Certificate[] getPeerCertificates()
        Specified by:
        getPeerCertificates in interface org.apache.activemq.transport.Transport
      • setPeerCertificates

        public void setPeerCertificates​(X509Certificate[] certificates)
        Specified by:
        setPeerCertificates in interface org.apache.activemq.transport.Transport