Top Description Methods
org.springframework.messaging.simp.stomp

public Interface StompFrameHandler

Known Direct Subinterfaces
org.springframework.messaging.simp.stomp.StompSessionHandler
Imports
java.lang.reflect.Type, org.springframework.lang.Nullable

Contract to handle a STOMP frame.
Author
Rossen Stoyanchev
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public Type
getPayloadType(StompHeaders
the headers of a message
headers
)

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

public void
handleFrame(StompHeaders
the headers of the frame
headers
,
Object
the payload, or null if there was no payload
payload
)

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

Method Detail

getPayloadTypeback to summary
public Type getPayloadType(StompHeaders headers)

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

Parameters
headers:StompHeaders

the headers of a message

handleFrameback to summary
public void handleFrame(StompHeaders headers, Object payload)

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

Parameters
headers:StompHeaders

the headers of the frame

payload:Object

the payload, or null if there was no payload