Class RequestProxyStompSessionHandler

  • All Implemented Interfaces:
    org.springframework.messaging.simp.stomp.StompFrameHandler, org.springframework.messaging.simp.stomp.StompSessionHandler

    public class RequestProxyStompSessionHandler
    extends org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter
    This class is an implementation for StompSessionHandlerAdapter. Once a connection is established, We subscribe to /topic/messages and send a sample message to server.
    Author:
    Kalyan
    • Constructor Detail

      • RequestProxyStompSessionHandler

        public RequestProxyStompSessionHandler()
    • Method Detail

      • afterConnected

        public void afterConnected​(org.springframework.messaging.simp.stomp.StompSession session,
                                   org.springframework.messaging.simp.stomp.StompHeaders connectedHeaders)
        Specified by:
        afterConnected in interface org.springframework.messaging.simp.stomp.StompSessionHandler
        Overrides:
        afterConnected in class org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter
      • handleException

        public void handleException​(org.springframework.messaging.simp.stomp.StompSession session,
                                    org.springframework.messaging.simp.stomp.StompCommand command,
                                    org.springframework.messaging.simp.stomp.StompHeaders headers,
                                    byte[] payload,
                                    Throwable exception)
        Specified by:
        handleException in interface org.springframework.messaging.simp.stomp.StompSessionHandler
        Overrides:
        handleException in class org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter
      • getPayloadType

        public Type getPayloadType​(org.springframework.messaging.simp.stomp.StompHeaders headers)
        Specified by:
        getPayloadType in interface org.springframework.messaging.simp.stomp.StompFrameHandler
        Overrides:
        getPayloadType in class org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter
      • handleFrame

        public void handleFrame​(org.springframework.messaging.simp.stomp.StompHeaders headers,
                                Object payload)
        Specified by:
        handleFrame in interface org.springframework.messaging.simp.stomp.StompFrameHandler
        Overrides:
        handleFrame in class org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter