类 MailPush
- 所有已实现的接口:
ApplicationBeanInitialized,Pushable<MailSenderInfo>
标准的邮件推送实现。同步调用
- 作者:
- 时克英
-
字段概要
从类继承的字段 com.walker.push.AbstractPushObject
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected PushResultdoPushContent(Notification notification, List<MailSenderInfo> data) protected abstract StringgetUserMail(String userId) 根据用户id,获取email地址voidsetFromAddress(String fromAddress) 设置发送邮件地址voidsetFromPassword(String fromPassword) 设置发送邮件密码(现在是密钥,不是登录邮箱密码)voidsetMailServerHost(String mailServerHost) 设置邮件服务地址voidsetMailServerPort(String mailServerPort) 设置邮件服务端口,默认:25voidstartup()translateToTarget(Notification notification) 从类继承的方法 com.walker.push.AbstractPushObject
equals, getId, getName, getPushStatusListener, hashCode, push, setId, setName, setPushStatusListener, setSupportAsync, supportAsync
-
构造器详细资料
-
MailPush
public MailPush()
-
-
方法详细资料
-
doPushContent
protected PushResult doPushContent(Notification notification, List<MailSenderInfo> data) throws PushException - 指定者:
doPushContent在类中AbstractPushObject<MailSenderInfo>- 抛出:
PushException
-
getNotificationChannel
-
translateToTarget
-
startup
public void startup() -
getUserMail
根据用户id,获取email地址- 参数:
userId-- 返回:
-
setMailServerHost
设置邮件服务地址- 参数:
mailServerHost-
-
setMailServerPort
设置邮件服务端口,默认:25- 参数:
mailServerPort-
-
setFromAddress
设置发送邮件地址- 参数:
fromAddress-
-
setFromPassword
设置发送邮件密码(现在是密钥,不是登录邮箱密码)- 参数:
fromPassword-
-