public interface StompFrameHandler
| Modifier and Type | Method and Description |
|---|---|
Type |
getPayloadType(StompHeaders headers)
Invoked before
handleFrame(StompHeaders, Object) to determine the
type of Object the payload should be converted to. |
void |
handleFrame(StompHeaders headers,
Object payload)
Handle a STOMP frame with the payload converted to the target type returned
from
getPayloadType(StompHeaders). |
Type getPayloadType(StompHeaders headers)
handleFrame(StompHeaders, Object) to determine the
type of Object the payload should be converted to.headers - the headers of a messagevoid handleFrame(StompHeaders headers, @Nullable Object payload)
getPayloadType(StompHeaders).headers - the headers of the framepayload - the payload, or null if there was no payload