Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finish |
static String |
MAIL_AUTH |
static String |
MAIL_FROM |
static String |
MAIL_PASSWORD |
static String |
MAIL_SERVER |
static String |
MAIL_TEMPLATES_DEFAULT |
static String |
MAIL_USER |
protected boolean |
mailAuth |
protected String |
mailFrom |
protected DefaultMailManager |
mailManager |
protected String |
mailPassword |
protected String |
mailServer |
protected String |
mailUser |
protected INoticeSendMails |
noticeSystem |
static int |
offset |
static String |
offsetString |
static long |
SEND_NEW_MAILS_PERIOD |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SendMailThread(long sleepTime,
Properties config,
INoticeSendMails noticeS) |
SendMailThread(long sleepTime,
String configPropertiesPath,
INoticeSendMails noticeS) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configMail(String server,
String user,
boolean auth,
String password) |
static String |
encrypt(String s,
String key,
int offset) |
protected javax.mail.Message |
getMessage(Hashtable h) |
protected void |
initParameters(Properties config) |
boolean |
isFinish() |
static void |
main(String[] args) |
void |
run() |
void |
setFinish(boolean finish) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static String MAIL_SERVER
public static String MAIL_USER
public static String MAIL_PASSWORD
public static String MAIL_AUTH
public static String MAIL_FROM
public static String MAIL_TEMPLATES_DEFAULT
public static long SEND_NEW_MAILS_PERIOD
public static int offset
public static String offsetString
protected String mailServer
protected String mailUser
protected String mailPassword
protected boolean mailAuth
protected String mailFrom
protected INoticeSendMails noticeSystem
protected DefaultMailManager mailManager
protected boolean finish
public SendMailThread(long sleepTime,
Properties config,
INoticeSendMails noticeS)
public SendMailThread(long sleepTime,
String configPropertiesPath,
INoticeSendMails noticeS)
protected void initParameters(Properties config)
public static String encrypt(String s, String key, int offset) throws IllegalArgumentException, UnsupportedEncodingException
public boolean isFinish()
public void setFinish(boolean finish)
protected javax.mail.Message getMessage(Hashtable h) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic static void main(String[] args)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.