Class WeChatInboundMessageEventHandlerImpl
- java.lang.Object
-
- com.flowable.engage.external.system.wechat.WeChatInboundMessageEventHandlerImpl
-
- All Implemented Interfaces:
WeChatInboundMessageEventHandler
public class WeChatInboundMessageEventHandlerImpl extends Object implements WeChatInboundMessageEventHandler
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected ExternalConversationService
externalConversationService
protected InboundMessageHandler
inboundMessageHandler
protected org.slf4j.Logger
logger
protected static String
SUBSCRIBE
protected static String
TEMPLATE_SEND_JOB_FINISH
protected TemplateService
templateService
-
Constructor Summary
Constructors Constructor Description WeChatInboundMessageEventHandlerImpl(InboundMessageHandler inboundMessageHandler, ExternalConversationService externalConversationService, TemplateService templateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(InboundMessageDto inboundMessage)
Handles an event message received from WeChatprotected void
handleSubscribeEvent(InboundMessageDto inboundMessage)
protected void
handleTemplateSendJobFinishEvent(InboundMessageDto inboundMessage)
protected void
handleUnsupportedEvent(InboundMessageDto inboundMessage)
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
SUBSCRIBE
protected static final String SUBSCRIBE
- See Also:
- Constant Field Values
-
TEMPLATE_SEND_JOB_FINISH
protected static final String TEMPLATE_SEND_JOB_FINISH
- See Also:
- Constant Field Values
-
inboundMessageHandler
protected final InboundMessageHandler inboundMessageHandler
-
externalConversationService
protected final ExternalConversationService externalConversationService
-
templateService
protected final TemplateService templateService
-
-
Constructor Detail
-
WeChatInboundMessageEventHandlerImpl
public WeChatInboundMessageEventHandlerImpl(InboundMessageHandler inboundMessageHandler, ExternalConversationService externalConversationService, TemplateService templateService)
-
-
Method Detail
-
handleEvent
public void handleEvent(InboundMessageDto inboundMessage)
Description copied from interface:WeChatInboundMessageEventHandler
Handles an event message received from WeChat- Specified by:
handleEvent
in interfaceWeChatInboundMessageEventHandler
- Parameters:
inboundMessage
- the received message
-
handleSubscribeEvent
protected void handleSubscribeEvent(InboundMessageDto inboundMessage)
-
handleTemplateSendJobFinishEvent
protected void handleTemplateSendJobFinishEvent(InboundMessageDto inboundMessage)
-
handleUnsupportedEvent
protected void handleUnsupportedEvent(InboundMessageDto inboundMessage)
-
-