public interface StompFrameHandler
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.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,
java.lang.Object payload)
Handle a STOMP frame with the payload converted to the target type returned
from
getPayloadType(StompHeaders) . |
java.lang.reflect.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, java.lang.Object payload)
getPayloadType(StompHeaders)
.headers
- the headers of the framepayload
- the payload or null
if there was no payload