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 ExternalConversationServiceexternalConversationServiceprotected InboundMessageHandlerinboundMessageHandlerprotected org.slf4j.Loggerloggerprotected static StringSUBSCRIBEprotected static StringTEMPLATE_SEND_JOB_FINISHprotected TemplateServicetemplateService
-
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 voidhandleEvent(InboundMessageDto inboundMessage)Handles an event message received from WeChatprotected voidhandleSubscribeEvent(InboundMessageDto inboundMessage)protected voidhandleTemplateSendJobFinishEvent(InboundMessageDto inboundMessage)protected voidhandleUnsupportedEvent(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:WeChatInboundMessageEventHandlerHandles an event message received from WeChat- Specified by:
handleEventin interfaceWeChatInboundMessageEventHandler- Parameters:
inboundMessage- the received message
-
handleSubscribeEvent
protected void handleSubscribeEvent(InboundMessageDto inboundMessage)
-
handleTemplateSendJobFinishEvent
protected void handleTemplateSendJobFinishEvent(InboundMessageDto inboundMessage)
-
handleUnsupportedEvent
protected void handleUnsupportedEvent(InboundMessageDto inboundMessage)
-
-