Class LineMessageInboundEventHandler
- java.lang.Object
-
- com.flowable.engage.external.system.line.LineMessageInboundEventHandler
-
- All Implemented Interfaces:
LineInboundEventHandler
public class LineMessageInboundEventHandler extends Object implements LineInboundEventHandler
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>enabledMessageTypesprotected InboundMessageHandlerinboundMessageHandlerprotected LineEmojiConverterlineEmojiConverterprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description LineMessageInboundEventHandler(InboundMessageHandler inboundMessageHandler, LineEmojiConverter lineEmojiConverter, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Set<String> enabledMessageTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()The type of the event that this handler handles.voidprocess(com.fasterxml.jackson.databind.JsonNode eventPayload)Process the event payload.protected voidreceiveMessage(LineInboundMessageDto message)
-
-
-
Field Detail
-
inboundMessageHandler
protected final InboundMessageHandler inboundMessageHandler
-
lineEmojiConverter
protected final LineEmojiConverter lineEmojiConverter
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
LineMessageInboundEventHandler
public LineMessageInboundEventHandler(InboundMessageHandler inboundMessageHandler, LineEmojiConverter lineEmojiConverter, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Set<String> enabledMessageTypes)
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:LineInboundEventHandlerThe type of the event that this handler handles.- Specified by:
getTypein interfaceLineInboundEventHandler- Returns:
- the type of the event that is handled
-
process
public void process(com.fasterxml.jackson.databind.JsonNode eventPayload)
Description copied from interface:LineInboundEventHandlerProcess the event payload.- Specified by:
processin interfaceLineInboundEventHandler- Parameters:
eventPayload- the payload of the event
-
receiveMessage
protected void receiveMessage(LineInboundMessageDto message)
-
-