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>
enabledMessageTypes
protected InboundMessageHandler
inboundMessageHandler
protected LineEmojiConverter
lineEmojiConverter
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
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 String
getType()
The type of the event that this handler handles.void
process(com.fasterxml.jackson.databind.JsonNode eventPayload)
Process the event payload.protected void
receiveMessage(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:LineInboundEventHandler
The type of the event that this handler handles.- Specified by:
getType
in interfaceLineInboundEventHandler
- Returns:
- the type of the event that is handled
-
process
public void process(com.fasterxml.jackson.databind.JsonNode eventPayload)
Description copied from interface:LineInboundEventHandler
Process the event payload.- Specified by:
process
in interfaceLineInboundEventHandler
- Parameters:
eventPayload
- the payload of the event
-
receiveMessage
protected void receiveMessage(LineInboundMessageDto message)
-
-