Class EmailSender
- java.lang.Object
-
- java.lang.Thread
-
- org.wso2.carbon.email.verification.util.EmailSender
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONF_STRING-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey)EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain)EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain, Map<String,String> userParameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringreplacePlaceHolders(String text, Map<String,String> userParameters)Replace the {user-parameters} in the config file with the respective valuesvoidrun()voidsendEmail()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
CONF_STRING
public static final String CONF_STRING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EmailSender
public EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey)
-
EmailSender
public EmailSender(EmailVerifierConfig config, String emailAddr, String secretKey, String tenantDomain)
-
-
Method Detail
-
sendEmail
public void sendEmail()
-
replacePlaceHolders
public static String replacePlaceHolders(String text, Map<String,String> userParameters)
Replace the {user-parameters} in the config file with the respective values- Parameters:
text- the initial textuserParameters- mapping of the key and its value- Returns:
- the final text to be sent in the email
-
-