public class HTTPSendSMSEngine extends AbstractSMSEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGIN_PARAMETER |
static String |
PASSWORD_PARAMETER |
static String |
SERVER_PARAMETER |
messageScheduler, modelService, phoneNumberService, STARTUP_DELAY_PARAMETER| Constructor and Description |
|---|
HTTPSendSMSEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl(String serverUrl,
Map<String,String> parameters)
Builds the url.
|
protected de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams |
getAccountParams(AggregatorSettingsDTO settings) |
protected boolean |
parseGatewayResponse(String response)
Parses the gateway response.
|
void |
send(AggregatorSettingsDTO settings,
OutgoingSMSMessageDTO message)
Called by mobile framework for immediate sending of a SMS message.
|
protected boolean |
sendLink(String normalizedPhoneNumber,
String subject,
String url,
de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams accountParams) |
protected boolean |
sendSms(String normalizedPhoneNumber,
String inputText,
de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams accountParams) |
getEngineId, getStartupDelaySeconds, isAvailable, setBeanName, setMessageScheduler, setModelService, setPhoneNumberService, shutdown, startup, updateAggregatorspublic static final String SERVER_PARAMETER
public static final String LOGIN_PARAMETER
public static final String PASSWORD_PARAMETER
protected String buildUrl(String serverUrl, Map<String,String> parameters) throws UnsupportedEncodingException
serverUrl - the server urlparameters - the parametersUnsupportedEncodingException - the unsupported encoding exceptionprotected boolean parseGatewayResponse(String response)
response - the responseprotected boolean sendLink(String normalizedPhoneNumber, String subject, String url, de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams accountParams)
protected boolean sendSms(String normalizedPhoneNumber, String inputText, de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams accountParams)
public void send(AggregatorSettingsDTO settings, OutgoingSMSMessageDTO message) throws SMSEngineException
SMSEnginesettings - the settings of the specific aggregator to send tomessage - the message including aggregator account dataSMSEngineExceptionprotected de.hybris.platform.mobileservices.text.engine.impl.HTTPSendSMSEngine.AccountParams getAccountParams(AggregatorSettingsDTO settings)
Copyright © 2017 SAP SE. All Rights Reserved.