Interface StompFrameHandler
- All Known Subinterfaces:
StompSessionHandler
- All Known Implementing Classes:
StompSessionHandlerAdapter
public interface StompFrameHandler
Contract to handle a STOMP frame.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptiongetPayloadType(StompHeaders headers) Invoked beforehandleFrame(StompHeaders, Object)to determine the type of Object the payload should be converted to.voidhandleFrame(StompHeaders headers, Object payload) Handle a STOMP frame with the payload converted to the target type returned fromgetPayloadType(StompHeaders).
-
Method Details
-
getPayloadType
Invoked beforehandleFrame(StompHeaders, Object)to determine the type of Object the payload should be converted to.- Parameters:
headers- the headers of a message
-
handleFrame
Handle a STOMP frame with the payload converted to the target type returned fromgetPayloadType(StompHeaders).- Parameters:
headers- the headers of the framepayload- the payload, ornullif there was no payload
-