接口 StompFrameHandler
- 所有已知子接口:
StompSessionHandler
- 所有已知实现类:
StompSessionHandlerAdapter
public interface StompFrameHandler
Contract to handle a STOMP frame.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Type
getPayloadType(StompHeaders headers)
Invoked beforehandleFrame(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 fromgetPayloadType(StompHeaders)
.
方法详细资料
getPayloadType
Type getPayloadType(StompHeaders headers)
Invoked beforehandleFrame(StompHeaders, Object)
to determine the type of Object the payload should be converted to.- 参数:
headers
- the headers of a message
handleFrame
void handleFrame(StompHeaders headers, Object payload)
Handle a STOMP frame with the payload converted to the target type returned fromgetPayloadType(StompHeaders)
.- 参数:
headers
- the headers of the framepayload
- the payload ornull
if there was no payload