Class DefaultConnectHandler

  • All Implemented Interfaces:
    Handler<ServerFrame>

    public class DefaultConnectHandler
    extends Object
    implements Handler<ServerFrame>
    STOMP compliant actions executed when receiving a CONNECT frame. It may also be called when receiving a STOMP frame depending on the StompServerHandler configuration.

    This handler manages the STOMP version negotiation and authentication (if enabled). Once all the checks have been passed, the CONNECTED frame is sent to the client.

    This handler is thread safe.

    Author:
    Clement Escoffier
    • Constructor Detail

      • DefaultConnectHandler

        public DefaultConnectHandler()
    • Method Detail

      • handle

        public void handle​(ServerFrame sf)
        Description copied from interface: Handler
        Something has happened, so handle it.
        Specified by:
        handle in interface Handler<ServerFrame>
        Parameters:
        sf - the event to handle