Package org.cyclos.impl.utils.sms
Interface InboundSmsRequestHandler
-
public interface InboundSmsRequestHandlerInterface for handler of inbound SMS requests
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseInfogenerateResponse(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request, InboundSmsData smsData, InboundSms sms)Generates the response to the SMS gatewayResponseInfogenerateResponseForError(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request, Exception exception)Generates the response to the SMS gateway when there is a general errorResponseInfogenerateResponseForMissingParameters(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request)Generates the response to the SMS gateway when the bare minimum parameters - number and message - are missingInboundSmsBasicDataresolveSmsData(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request)Parses, from the given request, the inbound SMS data
-
-
-
Method Detail
-
generateResponse
ResponseInfo generateResponse(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request, InboundSmsData smsData, InboundSms sms)
Generates the response to the SMS gateway
-
generateResponseForError
ResponseInfo generateResponseForError(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request, Exception exception)
Generates the response to the SMS gateway when there is a general error
-
generateResponseForMissingParameters
ResponseInfo generateResponseForMissingParameters(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request)
Generates the response to the SMS gateway when the bare minimum parameters - number and message - are missing
-
resolveSmsData
InboundSmsBasicData resolveSmsData(ConfigurationAccessor configuration, SmsChannelConfiguration channelConfiguration, RequestInfo request)
Parses, from the given request, the inbound SMS data
-
-