public class SMPPSMSEngine extends AbstractSMSEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLED_CFG_PARAMETER |
static String |
ENCODING_PARAMETER |
static String |
LOGIN_PARAMETER |
static String |
MODE_CFG_PARAMETER |
static String |
PASSWORD_PARAMETER |
static String |
RETRY_DELAY_PARAMETER |
static String |
SERVER_PARAMETER |
static String |
SERVER_PORT_PARAMETER |
static String |
SERVICE_TYPE_PARAMETER |
static String |
SHORTCODE_COUNTRY_PARAMETER |
static String |
SYS_TYPE_PARAMETER |
static String |
TARIFF_PARAMETER |
static String |
TIMEOUT_PARAMETER |
messageScheduler, modelService, phoneNumberService, STARTUP_DELAY_PARAMETER| Constructor and Description |
|---|
SMPPSMSEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
collectRawDetails(DeliverSM packet) |
protected de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings |
getAccountParameters(AggregatorSettingsDTO settings) |
protected SMPPConnectionPool.SMPPConnection |
getConnection(de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters) |
boolean |
isAvailable(AggregatorSettingsDTO settings)
Tells if the engine currently accepts messages or not.
|
protected boolean |
isSmppEnabled() |
protected void |
messageReceived(SMPPConnectionPool.SMPPConnection source,
DeliverSM pak) |
protected void |
messageSubmitted(SMPPConnectionPool.SMPPConnection source,
SubmitSMResp pak,
Object token) |
void |
send(AggregatorSettingsDTO settings,
OutgoingSMSMessageDTO message)
Called by mobile framework for immediate sending of a SMS message.
|
protected void |
sendLink(String normalizedPhoneNumber,
String subject,
String url,
OutgoingSMSMessageDTO message,
de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters) |
protected void |
sendSms(String normalizedPhoneNumber,
String inputText,
OutgoingSMSMessageDTO message,
de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters) |
void |
setAvailable(boolean available) |
void |
setMessageGateway(IncomingSMSMessageGateway messageGateway) |
void |
setVendor(SMPPProviderStrategy vendor) |
void |
shutdown()
Called once the system is about to shut down.
|
void |
startup(Collection<AggregatorSettingsDTO> aggregatorSettings)
Called once upon system startup.
|
void |
updateAggregators(Collection<AggregatorSettingsDTO> aggregatorSettings)
May be called while being connected.
|
getEngineId, getStartupDelaySeconds, setBeanName, setMessageScheduler, setModelService, setPhoneNumberServicepublic static final String SERVER_PARAMETER
public static final String SERVER_PORT_PARAMETER
public static final String LOGIN_PARAMETER
public static final String PASSWORD_PARAMETER
public static final String SYS_TYPE_PARAMETER
public static final String SERVICE_TYPE_PARAMETER
public static final String SHORTCODE_COUNTRY_PARAMETER
public static final String ENCODING_PARAMETER
public static final String TIMEOUT_PARAMETER
public static final String TARIFF_PARAMETER
public static final String ENABLED_CFG_PARAMETER
public static final String MODE_CFG_PARAMETER
public static final String RETRY_DELAY_PARAMETER
public void startup(Collection<AggregatorSettingsDTO> aggregatorSettings)
SMSEnginestartup in interface SMSEnginestartup in class AbstractSMSEngineaggregatorSettings - the settings of all aggregators which are using this enginepublic void updateAggregators(Collection<AggregatorSettingsDTO> aggregatorSettings)
SMSEngineupdateAggregators in interface SMSEngineupdateAggregators in class AbstractSMSEnginepublic void shutdown()
SMSEngineshutdown in interface SMSEngineshutdown in class AbstractSMSEngineprotected void sendLink(String normalizedPhoneNumber, String subject, String url, OutgoingSMSMessageDTO message, de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters) throws SMSEngineException
SMSEngineExceptionprotected SMPPConnectionPool.SMPPConnection getConnection(de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters)
protected void sendSms(String normalizedPhoneNumber, String inputText, OutgoingSMSMessageDTO message, de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings accountParameters) throws SMSEngineException
SMSEngineExceptionpublic boolean isAvailable(AggregatorSettingsDTO settings)
SMSEnginefalse to signal temporary
unavailability.
If there is a general (e.g. configuration) problem this should rather be
causing a exception in SMSEngine.send(AggregatorSettingsDTO, OutgoingSMSMessageDTO) instead.isAvailable in interface SMSEngineisAvailable in class AbstractSMSEnginesettings - the settings of the specific aggregator to checkpublic void send(AggregatorSettingsDTO settings, OutgoingSMSMessageDTO message) throws SMSEngineException
SMSEnginesettings - the settings of the specific aggregator to send tomessage - the message including aggregator account dataSMSEngineExceptionprotected void messageSubmitted(SMPPConnectionPool.SMPPConnection source, SubmitSMResp pak, Object token)
protected void messageReceived(SMPPConnectionPool.SMPPConnection source, DeliverSM pak)
public void setAvailable(boolean available)
available - the available flag to setprotected String collectRawDetails(DeliverSM packet)
protected de.hybris.platform.mobileservices.text.engine.impl.SMPPSMSEngine.SMPPAccountSettings getAccountParameters(AggregatorSettingsDTO settings)
public void setMessageGateway(IncomingSMSMessageGateway messageGateway)
protected boolean isSmppEnabled()
public void setVendor(SMPPProviderStrategy vendor)
vendor - the vendor to setCopyright © 2017 SAP SE. All Rights Reserved.