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 SummaryModifier 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- 
getPayloadTypeInvoked beforehandleFrame(StompHeaders, Object)to determine the type of Object the payload should be converted to.- Parameters:
- headers- the headers of a message
 
- 
handleFrameHandle a STOMP frame with the payload converted to the target type returned fromgetPayloadType(StompHeaders).- Parameters:
- headers- the headers of the frame
- payload- the payload, or- nullif there was no payload
 
 
-