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

StompFrameHandler

interface StompFrameHandler

Contract to handle a STOMP frame.

Author
Rossen Stoyanchev

Since
4.2

Functions

getPayloadType

abstract fun getPayloadType(headers: StompHeaders): Type

Invoked before #handleFrame(StompHeaders, Object) to determine the type of Object the payload should be converted to.

handleFrame

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

Handle a STOMP frame with the payload converted to the target type returned from #getPayloadType(StompHeaders).