public class CommonSMSSendServiceImpl extends Object implements SMSSendService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CommonSMSSendServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccount() |
Map<String,String> |
getInitParams() |
String |
getPassword() |
static String |
getResponseContent(org.apache.http.HttpEntity responseEntity) |
String |
getUrl() |
String |
sendSMS(String mobile,
String content)
直接写好发送内容
|
String |
sendSMSByParams(Map<String,Object> params)
直接写好发送内容
|
String |
sendSMSByTemplate(String mobile,
String template,
String[] params)
通过模板发送短信
|
String |
sendSMSByTemplateByMore(String mobile,
String template,
Map params)
通过模板发送多种参数的短信内容
|
void |
setAccount(String account) |
void |
setInitParams(Map<String,String> initParams) |
void |
setPassword(String password) |
void |
setUrl(String url) |
public String sendSMS(String mobile, String content)
SMSSendServicesendSMS in interface SMSSendServicepublic String sendSMSByParams(Map<String,Object> params)
SMSSendServicesendSMSByParams in interface SMSSendServicepublic String sendSMSByTemplate(String mobile, String template, String[] params)
SMSSendServicesendSMSByTemplate in interface SMSSendServicepublic String sendSMSByTemplateByMore(String mobile, String template, Map params)
SMSSendServicesendSMSByTemplateByMore in interface SMSSendServicepublic static String getResponseContent(org.apache.http.HttpEntity responseEntity) throws Exception
Exceptionpublic String getUrl()
public void setUrl(String url)
public String getAccount()
public void setAccount(String account)
public String getPassword()
public void setPassword(String password)
Copyright © 2022. All rights reserved.