spring-framework / org.springframework.messaging.simp.stomp / StompSessionHandlerAdapter

StompSessionHandlerAdapter

abstract class StompSessionHandlerAdapter : StompSessionHandler

Abstract adapter class for StompSessionHandler with mostly empty implementation methods except for #getPayloadType which returns String as the default Object type expected for STOMP ERROR frame payloads.

Author
Rossen Stoyanchev

Since
4.2

Constructors

<init>

StompSessionHandlerAdapter()

Abstract adapter class for StompSessionHandler with mostly empty implementation methods except for #getPayloadType which returns String as the default Object type expected for STOMP ERROR frame payloads.

Functions

afterConnected

open fun afterConnected(session: StompSession, connectedHeaders: StompHeaders): Unit

This implementation is empty.

getPayloadType

open fun getPayloadType(headers: StompHeaders): Type

This implementation returns String as the expected payload type for STOMP ERROR frames.

handleException

open fun handleException(session: StompSession, command: StompCommand, headers: StompHeaders, payload: ByteArray, exception: Throwable): Unit

This implementation is empty.

handleFrame

open fun handleFrame(headers: StompHeaders, payload: Any): Unit

This implementation is empty.

handleTransportError

open fun handleTransportError(session: StompSession, exception: Throwable): Unit

This implementation is empty.