public class DefaultIncomingMessageProcessor extends java.lang.Object implements IncomingMessageProcessor
MobileShortcodeModel, then a MobileActionAssignmentModel which
holds a configured AbstractActionModel that is being triggered finally.
In case no action could be matched alternatively the default action optionally stored
at the shortcode will be taken.
Since both shortcode and configured action may hold filtering phone number lists the
message will not be passed to a action in case the originating phone number is not
allowed.| Modifier and Type | Field and Description |
|---|---|
protected MessagePricingStrategy |
messagePricingStrategy |
protected ModelService |
modelService |
protected PhoneListService |
phoneListService |
| Constructor and Description |
|---|
DefaultIncomingMessageProcessor() |
protected ModelService modelService
protected PhoneListService phoneListService
protected MessagePricingStrategy messagePricingStrategy
public void process(MobileMessageContextModel data)
process in interface IncomingMessageProcessorprotected boolean processActionAssignment(MobileMessageContextModel data)
protected boolean processActiveAction(MobileActionAssignmentModel assignedAction, MobileMessageContextModel data)
protected boolean processTestModeAction(MobileActionAssignmentModel assignedAction, MobileMessageContextModel data)
protected boolean processShortcode(MobileMessageContextModel data)
protected boolean processUser(MobileMessageContextModel data)
protected boolean processShortcodeNumber(MobileMessageContextModel data)
protected boolean processPhoneNumber(MobileMessageContextModel data)
public void setPhoneNumberService(PhoneNumberService phoneNumberHelper)
public void setIncomingMessageRouter(IncomingMessageRoutingStrategy incomingMessageRouter)
public void setActionService(ActionService actionService)
public void setModelService(ModelService modelService)
public void setPhoneListService(PhoneListService helper)
public void setMessagePricingStrategy(MessagePricingStrategy messagePriceHelper)
Copyright © 2018 SAP SE. All Rights Reserved.